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 9fb1b71 commit d90de54
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modules/internet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +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)
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 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 " CITY START"
echo $info | grep -o '"city": "[^;]*'
echo " END CITY"

echo " CITY: $city"
echo " POSTAL: $postal"
echo " TIMEZONE: $timezone"
echo "$ip"
echo "$org"
if [ -z "$postal" ]; then
Expand Down

0 comments on commit d90de54

Please sign in to comment.