Fixed issue where the Org wouldn't display due to an error in the grep command
This commit is contained in:
parent
db33ec1969
commit
90d6f0b51d
2
Linux/speedtest.sh
Normal file → Executable file
2
Linux/speedtest.sh
Normal file → Executable file
@ -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":")[^"]+')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user