mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
fix: Force JSON response
This commit is contained in:
1 parent
354bd2429b
commit
ced994d94a
1 file changed
+1
-1
+1
-1
@@ -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=$?; } || :
|
||||
|
||||
Reference in new issue
Block a user