diff --git a/parked.sh b/parked.sh index f848daadd..3ac2f2845 100644 --- a/parked.sh +++ b/parked.sh @@ -88,7 +88,7 @@ function check_for_unparked { function check_for_parked { [[ ! -f "$1" ]] && return # Return if split file not found - [[ "$1" == 'x00' ]] && { track=true; count=0; } # Track progress for first split file + [[ "$1" == 'x00' ]] && { track=true; count=0; } || track=false # Track progress for first split file while read -r domain; do ((count++)) # Check for parked message in site's HTML diff --git a/test.sh b/test.sh index 9f854c316..95af56eb4 100644 --- a/test.sh +++ b/test.sh @@ -311,12 +311,12 @@ function test_parked { # Test removal of parked domains printf "github\n" >> "$parked_terms_file" # Sample parked term # Input - printf "github.com\n" >> "$raw_file" + printf "tradexchange.online\n" >> "$raw_file" printf "apple.com\n" >> "$raw_file" # Expected output - printf "github.com\n" >> out_parked.txt + printf "tradexchange.online\n" >> out_parked.txt printf "apple.com\n" >> out_raw.txt - printf "parked,github.com,raw\n" >> out_log.txt + printf "parked,tradexchange.online,raw\n" >> out_log.txt # Test raw light file cp "$raw_file" "$raw_light_file"