Skip to content

Commit 1f2ccdd

Browse files
authored
Update check_urls.sh
1 parent 5ea1dbe commit 1f2ccdd

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

scripts/check_urls.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8-
set -x
9-
10-
url="https://mvnrepository.com/artifact/org.pytorch/executorch-android"
11-
request_id=$(curl -sS -H 'Accept: application/json' \
12-
"https://check-host.net/check-http?host=$url&max_nodes=1&node=us3.node.check-host.net" \
13-
| jq -r .request_id)
14-
code=$(curl -sS -H 'Accept: application/json' \
15-
"https://check-host.net/check-result/$request_id" \
16-
| jq -r '.[][0][3]')
17-
echo $code
18-
198
set -euo pipefail
209

2110
status=0
@@ -36,6 +25,7 @@ while IFS=: read -r filepath url; do
3625
request_id=$(curl -sS -H 'Accept: application/json' \
3726
"https://check-host.net/check-http?host=$url&max_nodes=1&node=us3.node.check-host.net" \
3827
| jq -r .request_id)
28+
sleep 5
3929
code=$(curl -sS -H 'Accept: application/json' \
4030
"https://check-host.net/check-result/$request_id" \
4131
| jq -r '.[][0][3]')

0 commit comments

Comments
 (0)