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 63a72c3 commit 46d3d81Copy full SHA for 46d3d81
scripts/check_urls.sh
@@ -26,7 +26,8 @@ while IFS=: read -r filepath url; do
26
| jq -r .request_id)
27
for _ in {1..3}; do
28
code=$(curl -sS -H 'Accept: application/json' "https://check-host.net/check-result/$request_id" \
29
- | jq -r -e '.[][0][3]') || code=000
+ | jq -r -e '.[][0][3]')
30
+ [[ "$code" =~ ^[0-9]+$ ]] || code=000
31
sleep 3
32
done
33
fi
0 commit comments