Skip to content

Commit 4109045

Browse files
authored
Update check_urls.sh
1 parent 3d364bb commit 4109045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_urls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ while IFS=: read -r filepath url; do
2727
| jq -r .request_id)
2828
code=$(curl -sS -H 'Accept: application/json' \
2929
"https://check-host.net/check-result/$request_id" \
30-
| jq -r '."us3.node.check-host.net"[0][3]' 2>/dev/null)
30+
| jq -r 'to_entries[0].value[0][3]')
3131
fi
3232
[[ "$code" =~ ^[0-9]+$ ]] || code=000
3333
if [ "$code" -ge 200 ] && [ "$code" -lt 400 ]; then

0 commit comments

Comments
 (0)