diff options
Diffstat (limited to 'TLD/generate.sh')
-rw-r--r-- | TLD/generate.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TLD/generate.sh b/TLD/generate.sh index ee5d327..0d3b1d8 100644 --- a/TLD/generate.sh +++ b/TLD/generate.sh @@ -3,13 +3,13 @@ BASE=$(dirname "$0") pushd "$BASE" fname=public_suffix_list.dat nflag="" -if [ -f $fname ]; then +if [ -f "$fname" ]; then nflag="-z $fname" fi URL=https://publicsuffix.org/list/$fname curl -O $nflag "$URL" -if ! grep 'com' $fname >/dev/null; then +if ! grep 'com' "$fname" >/dev/null; then echo >&2 "$fname empty or corrupt!" exit 1 fi |