Skip to content

Commit

Permalink
update remote reverse (fixes #2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 26, 2021
1 parent 9a55649 commit 9fb1b71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ 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": "[^;]*' | cut -d ' ' -f 1,2)
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 " INFO: $info"
echo " CITY START"
echo $info | grep -o '"city": "[^;]*'
echo " END CITY"

echo "$ip"
echo "$org"
Expand Down

0 comments on commit 9fb1b71

Please sign in to comment.