fix: Force JSON response

This commit is contained in:
Kroese 2023-12-04 14:35:59 +01:00 committed by GitHub
parent 354bd2429b
commit ced994d94a

View File

@ -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=$?; } || :