From ced994d94a32e297c13ba068b7cafaae5a2fa68b Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 4 Dec 2023 14:35:59 +0100 Subject: [PATCH] fix: Force JSON response --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 2da0973..de6fe77 100644 --- a/src/install.sh +++ b/src/install.sh @@ -23,7 +23,7 @@ fi # Detect country COUNTRY="" -{ JSON=$(curl -sfk https://ipinfo.io); rc=$?; } || : +{ JSON=$(curl -sfk https://ipinfo.io/json); rc=$?; } || : if (( rc == 0 )); then { COUNTRY=$(echo "$JSON" | jq -r '.country' 2> /dev/null); rc=$?; } || :