summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar/iplocate
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 19:10:00 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 19:10:00 -0400
commit9fe6802122f6e0392c7fe20eefd30437771d7f8e (patch)
treeef2a15076f9317e8f72cacdebf5ccea12601a1a3 /.local/bin/statusbar/iplocate
parent7f334ff4b902e7cfbc8cb824e59510b752e7a754 (diff)
downloadeibhear-9fe6802122f6e0392c7fe20eefd30437771d7f8e.tar.gz
eibhear-9fe6802122f6e0392c7fe20eefd30437771d7f8e.tar.zst
eibhear-9fe6802122f6e0392c7fe20eefd30437771d7f8e.zip
oops for config
Diffstat (limited to '.local/bin/statusbar/iplocate')
-rwxr-xr-x.local/bin/statusbar/iplocate2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate
index 2f1b08b..1dddb7c 100755
--- a/.local/bin/statusbar/iplocate
+++ b/.local/bin/statusbar/iplocate
@@ -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: " ${XDG_CONFIG_HOME:$HOME/.config}/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"
+grep "flag: " ${XDG_CONFIG_HOME:-$HOME/.config}/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"