mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-02 13:33:07 +00:00
Don't exit when curl is failing to connect
This commit is contained in:
parent
09c4fa5300
commit
7a364b8a1f
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -40,13 +40,12 @@ jobs:
|
||||
echo "Waiting for $URL (timeout: ${TIMEOUT_SECONDS}s)..."
|
||||
|
||||
for i in $(seq 1 $MAX_RETRIES); do
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL")
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
|
||||
if [ "$STATUS" = "200" ]; then
|
||||
echo "Codex is ready"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Waiting... HTTP status: $STATUS"
|
||||
sleep $SLEEP_INTERVAL
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user