Update test_webpages.sh

This commit is contained in:
Ludy87 2025-04-27 00:41:19 +02:00
parent 866295ebdb
commit 4a0c6d7b7e
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -26,7 +26,7 @@ check_webpage() {
fi
# Check if response contains HTML
if ! printf '%s' "$BODY" | grep -q "<!DOCTYPE html>\|<html"; then
if ! grep -q "<!DOCTYPE html>\|<html" <<< "$BODY"; then
echo "FAILED - Response is not HTML - $full_url" >> "$result_file"
return 1
fi