mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Fixed error with some countries not displaying properly
This commit is contained in:
parent
0ed5cca314
commit
d986982658
@ -258,4 +258,4 @@
|
|||||||
🇿🇼 Zimbabwe
|
🇿🇼 Zimbabwe
|
||||||
🏴 England
|
🏴 England
|
||||||
🏴 Scotland
|
🏴 Scotland
|
||||||
🏴Wales
|
🏴 Wales
|
||||||
|
|||||||
@ -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)"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user