From 607208c1710b10474ff0b25c02757f81f4f0d93c Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 10 Mar 2024 07:49:19 +0000 Subject: [PATCH] fix: check file exists and not zero size --- src/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.sh b/src/script.sh index a281726f..d864497a 100644 --- a/src/script.sh +++ b/src/script.sh @@ -218,7 +218,7 @@ set -x ## "phishing-subdomains.txt" is derived from URLs of top domains that does not have a path # exclude from top (sub)domains -if [ -f "phishing-subdomains.txt" ]; then +if [ -s "phishing-subdomains.txt" ]; then cat "phishing-subdomains.txt" | \ grep -Fx -vf "phishing-top-domains.txt" >> "phishing-notop-domains-temp.txt" fi