Commit ced994d9 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Force JSON response

parent 354bd242
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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=$?; } || :