Skip to content

Commit 46d3d81

Browse files
authored
Update check_urls.sh
1 parent 63a72c3 commit 46d3d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/check_urls.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ while IFS=: read -r filepath url; do
2626
| jq -r .request_id)
2727
for _ in {1..3}; do
2828
code=$(curl -sS -H 'Accept: application/json' "https://check-host.net/check-result/$request_id" \
29-
| jq -r -e '.[][0][3]') || code=000
29+
| jq -r -e '.[][0][3]')
30+
[[ "$code" =~ ^[0-9]+$ ]] || code=000
3031
sleep 3
3132
done
3233
fi

0 commit comments

Comments
 (0)