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 d90de54 commit 75818c8
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": "[^;]*' | 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)
city=$(echo $info | grep -o '"city": "[^;]*' | cut -d '"' -f 4)
postal=$(echo $info | grep -o '"postal": "[^;]*' | cut -d '"' -f 4)
timezone=$(echo $info | grep -o '"timezone": "[^;]*' | cut -d '"' -f 4)

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

0 comments on commit 75818c8

Please sign in to comment.