diff --git a/functions/check_dead.sh b/functions/check_dead.sh index a09e2950e..92b657108 100644 --- a/functions/check_dead.sh +++ b/functions/check_dead.sh @@ -111,7 +111,7 @@ check_dead() { # Function 'check_alive' finds resurrected domains in the dead domains file # and adds them back into the raw file. check_alive() { - find_dead "$DEAD_DOMAINS" || return + find_dead "$DEAD_DOMAINS" # No need to return if no dead found # Get resurrected domains in dead domains file # (dead domains file is unsorted) diff --git a/functions/check_parked.sh b/functions/check_parked.sh index 9d3a1e2fe..4fce840f2 100644 --- a/functions/check_parked.sh +++ b/functions/check_parked.sh @@ -39,10 +39,11 @@ remove_parked_domains() { # Function 'add_unparked_domains' finds unparked domains in the parked domains # file and adds them back into the raw file. add_unparked_domains() { - retrieve_parked "$PARKED_DOMAINS" || return + retrieve_parked "$PARKED_DOMAINS" # No need to return if no parked found # Get unparked domains unparked_domains="$(grep -vxFf parked_domains.tmp "$PARKED_DOMAINS")" + [[ -z "$unparked_domains" ]] && return # Keep only parked domains in parked domains file grep -xFF parked_domains.tmp "$PARKED_DOMAINS" > parked.tmp