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

fix: Set timeout (#435)

parent 9e61be15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ getCountry () {
  local url=$1
  local query=$2

  { json=$(curl -H "Accept: application/json" -sfk "$url"); rc=$?; } || :
  { json=$(curl -m 5 -H "Accept: application/json" -sfk "$url"); rc=$?; } || :
  (( rc != 0 )) && return 0

  { result=$(echo "$json" | jq -r "$query" 2> /dev/null); rc=$?; } || :