Skip to content

Commit

Permalink
internet reverse reorder and keep unique (fixes #2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 26, 2021
1 parent 05c35c3 commit 7f9d684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function internet {
if ! nc -w 10 -z 8.8.8.8 53 >/dev/null 1>&2; then
log_and_exit1 "Error: no internet found"
fi
# I can't even.
# I can't even
info="$(curl -s ipinfo.io | grep -o '"[^"]*"\s*:\s*"[^"]*"')"
ip=$(echo "$info" | grep -e '"ip": "')
org=$(echo "$info" | grep -e '"org": "')
Expand Down

0 comments on commit 7f9d684

Please sign in to comment.