diff --git a/parked.sh b/parked.sh index 1cf1dc81b..4462c1fef 100644 --- a/parked.sh +++ b/parked.sh @@ -72,7 +72,7 @@ function check_for_unparked { count=1 # Check for parked message in site's HTML while read -r domain; do - if ! grep -qiFf "$parked_terms_file" <<< "$(curl -sL --max-time 1 "http://${domain}/" | tr -d '\0')"; then + if ! grep -qiFf "$parked_terms_file" <<< "$(curl -sL --max-time 2 "http://${domain}/" | tr -d '\0')"; then printf "Unparked: %s\n" "$domain" printf "%s\n" "$domain" >> "unparked_domains_${1}.tmp" fi @@ -91,7 +91,7 @@ function check_for_parked { count=1 # Check for parked message in site's HTML while read -r domain; do - if grep -qiFf "$parked_terms_file" <<< "$(curl -sL --max-time 1 "http://${domain}/" | tr -d '\0')"; then + if grep -qiFf "$parked_terms_file" <<< "$(curl -sL --max-time 2 "http://${domain}/" | tr -d '\0')"; then printf "Parked: %s\n" "$domain" printf "%s\n" "$domain" >> "parked_domains_${1}.tmp" fi diff --git a/test.sh b/test.sh index f5f3c9f33..9aa965e4d 100644 --- a/test.sh +++ b/test.sh @@ -294,8 +294,8 @@ function test_dead { } function test_parked { - unparked_placeholder=$(head -n 100 "$toplist_file") - parked_placeholder=$(head -n 100 "$parked_domains_file") + unparked_placeholder=$(head -n 50 "$toplist_file") + parked_placeholder=$(head -n 50 "$parked_domains_file") printf "%s\n" "$unparked_placeholder" > placeholders.txt printf "%s\n" "$parked_placeholder" >> placeholders.txt printf "%s\n" "$unparked_placeholder" > "$raw_file"