Fixed issue where the Org wouldn't display due to an error in the grep command

This commit is contained in:
Phil 2024-05-06 15:23:07 +01:00
parent db33ec1969
commit 90d6f0b51d

2
Linux/speedtest.sh Normal file → Executable file
View 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":")[^"]+')