Added check if the proper packages are installed

This commit is contained in:
Sam Erickson 2019-04-05 17:39:33 -07:00
parent 797793ad99
commit 99cf4438dd
No known key found for this signature in database
GPG Key ID: A8D440EE3D2ECF5E

View File

@ -8,6 +8,7 @@
#
# curl https://samerickson.me/files/flag-emojis > ~/.local/share/flag-emojis
#
ifinstalled "$geoiplookup" || exit
addr="$(curl ifconfig.me 2>/dev/null)"
country="$(geoiplookup $addr | awk '{print $5}')"
printf "%s" "$(sed -n /$country/p ~/.local/share/larbs/flag-emojis)"