Fixed issue where the Org wouldn't display due to an error in the grep command
This commit is contained in:
Regular → Executable
+1
-1
@@ -60,7 +60,7 @@ INFO=$(curl -s https://ipv4.am.i.mullvad.net/json | python -m json.tool)
|
|||||||
# Get Reported IP
|
# Get Reported IP
|
||||||
IP=$(echo "$INFO" | grep -oE '"ip":\s*"[^"]+"' | grep -oE '[0-9.]+')
|
IP=$(echo "$INFO" | grep -oE '"ip":\s*"[^"]+"' | grep -oE '[0-9.]+')
|
||||||
# Get Reported ISP
|
# Get Reported ISP
|
||||||
ORG=$(echo "$INFO" | grep -oP '(?<="organization": ")[^"]+')
|
ORG=$(echo "$INFO" | grep -oP '(?<="organization":")[^"]+')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user