We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d364bb commit 4109045Copy full SHA for 4109045
scripts/check_urls.sh
@@ -27,7 +27,7 @@ while IFS=: read -r filepath url; do
27
| jq -r .request_id)
28
code=$(curl -sS -H 'Accept: application/json' \
29
"https://check-host.net/check-result/$request_id" \
30
- | jq -r '."us3.node.check-host.net"[0][3]' 2>/dev/null)
+ | jq -r 'to_entries[0].value[0][3]')
31
fi
32
[[ "$code" =~ ^[0-9]+$ ]] || code=000
33
if [ "$code" -ge 200 ] && [ "$code" -lt 400 ]; then
0 commit comments