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 616d5dc commit 1ad021c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ function internet {
ip=$(echo "$info" | grep -e '"ip": "')
org=$(echo "$info" | grep -e '"org": "')
country=$(echo "$info" | grep -o '"country": "[^;]*')
city=$(echo $info | grep -e '"city": "')
postal=$(echo $postal | grep -e '"postal": "')
timezone=$(echo $postal | grep -e '"timezone": "')
city=$(echo $info | grep -o '"city": "[^;]*')
postal=$(echo $postal | grep -o '"postal": "[^;]*')
timezone=$(echo $postal | grep -o '"timezone": "[^;]*')

# echo " INFO: $info"
# echo ""
# echo " IP: $ip"
# echo " ORG: $org"
echo " COUNTRY: $country"
# echo " COUNTRY: $country"
# echo " CITY: $city"
# echo " POSTAL: $postal"
# echo " TIMEZONE: $timezone"
Expand Down

0 comments on commit 1ad021c

Please sign in to comment.