Fixed typos

This commit is contained in:
Sam Erickson 2019-04-05 17:42:42 -07:00 committed by Luke Smith
parent bf5d02f3bb
commit 0ed5cca314
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
# Gets your public ip address checks which country you are in and # Gets your public ip address checks which country you are in and
# displays that information in the statusbar # displays that information in the statusbar
@ -8,7 +8,7 @@
# #
# curl https://samerickson.me/files/flag-emojis > ~/.local/share/flag-emojis # curl https://samerickson.me/files/flag-emojis > ~/.local/share/flag-emojis
# #
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}')" country="$(geoiplookup $addr | awk '{print $5}')"
printf "%s" "$(sed -n /$country/p ~/.local/share/larbs/flag-emojis)" printf "%s" "$(sed -n /$country/p ~/.local/share/larbs/flag-emojis)"