From 75818c879aaf296631fb3751763fb434253a2304 Mon Sep 17 00:00:00 2001 From: JLKwong Date: Thu, 25 Mar 2021 21:52:43 -0700 Subject: [PATCH] update remote reverse (fixes #2137) --- modules/internet.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/internet.sh b/modules/internet.sh index d2594b934..45c056a8d 100644 --- a/modules/internet.sh +++ b/modules/internet.sh @@ -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"