ifinstalled now checks for packages, iplocate fix,

sleep removed from torwrap
This commit is contained in:
Luke Smith
2020-04-18 10:33:58 -04:00
parent 82f016a5c3
commit 37788be5d9
3 changed files with 11 additions and 7 deletions

View File

@@ -5,6 +5,6 @@
#
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
ifinstalled "geoiplookup" || exit
ifinstalled "geoip" || exit
addr="$(curl ifconfig.me 2>/dev/null)" || exit
grep "flag: " ${XDG_CONFIG_HOME:-$HOME/.config}/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"
grep "flag: " "${XDG_DATA_HOME:-$HOME/.local/share}/larbs/emoji" | grep "$(geoiplookup "$addr" | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"