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 343aa39 commit c82d44a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function internet {
ip=$(echo "$info" | grep -e '"ip": "')
org=$(echo "$info" | grep -e '"org": "')
country=$(echo "$info" | grep -o '"country": "[^;]*')
city=$(echo $info | grep -o '"city": "[^;]*')
postal=$(echo $info | grep -o '"postal": "[^;]*')
timezone=$(echo $info | grep -o '"timezone": "[^;]*')
city=$(echo $info | grep -o '"city": "[^;]*' | cut -d ' ' -f 1,2)
postal=$(echo $info | grep -o '"postal": "[^;]*' | cut -d ' ' -f 1,2)
timezone=$(echo $info | grep -o '"timezone": "[^;]*' | cut -d ' ' -f 1,2)

# echo " INFO: $info"
# echo ""
Expand Down

0 comments on commit c82d44a

Please sign in to comment.