Update HTTP response check
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s

This commit is contained in:
2024-12-27 23:44:46 -03:00
parent 27b90a9094
commit 56ef66596b
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ SERVER_FILE="https://git.ivanch.me/ivanch/server-scripts/raw/branch/main/clean.s
SERVER_OK=1
# Check if the server file exists
curl -s --head $SERVER_FILE | head -n 1 | grep "HTTP/1.[01] [23].." > /dev/null
curl -s --head $SERVER_FILE | head -n 1 | grep -E "HTTP/[12] [23].." > /dev/null
if [ $? -ne 0 ]; then
echo "Error: $SERVER_FILE not found." >&2