substitute ~/.config with $XDG_CONFIG_HOME

This commit is contained in:
Dennis Lee
2020-04-04 13:00:08 -07:00
parent 82cf021b78
commit a29eaec506
21 changed files with 56 additions and 56 deletions

View File

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