fix: check file exists and not zero size

This commit is contained in:
MDLeom 2024-03-10 07:49:19 +00:00
parent a1548a5e1c
commit 607208c171
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -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