Update HTTP response check
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
This commit is contained in:
2
clean.sh
2
clean.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user