Fixed error with some countries not displaying properly

This commit is contained in:
Sam Erickson 2019-04-05 16:20:17 -07:00
parent 319bf419f8
commit 8ada70f723
No known key found for this signature in database
GPG Key ID: A8D440EE3D2ECF5E
2 changed files with 262 additions and 263 deletions

View File

@ -258,4 +258,4 @@
🇿🇼 Zimbabwe 🇿🇼 Zimbabwe
🏴󠁧󠁢󠁥󠁮󠁧󠁿 England 🏴󠁧󠁢󠁥󠁮󠁧󠁿 England
🏴󠁧󠁢󠁳󠁣󠁴󠁿 Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿 Scotland
🏴󠁧󠁢󠁷󠁬󠁳󠁿Wales 🏴󠁿 Wales

View File

@ -10,5 +10,4 @@
# #
ifinstalled "geoiplookup" || exit ifinstalled "geoiplookup" || exit
addr="$(curl ifconfig.me 2>/dev/null)" addr="$(curl ifconfig.me 2>/dev/null)"
country="$(geoiplookup $addr | awk '{print $5}')" grep "$(geoiplookup $addr | sed 's/.*, //')" ~/.local/share/flag-emojis
printf "%s" "$(sed -n /$country/p ~/.local/share/larbs/flag-emojis)"