Skip to content

Commit

Permalink
fix: Set timeout (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 6, 2023
1 parent 313dbeb commit 754de72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?; } || :
Expand Down

0 comments on commit 754de72

Please sign in to comment.