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 06d7fd0 commit 147f9b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function internet {
log_and_exit1 "Error: no internet found"
fi
info="$(curl -s ipinfo.io | grep -o '"[^"]*"\s*:\s*"[^"]*"')"
echo " INFO: $info"
echo "$info" | grep -E '"(ip)"'
echo "$info" | grep -E '"(org)"'
if ! echo "$info" | grep -E 'postal'; then
Expand Down

0 comments on commit 147f9b7

Please sign in to comment.