From a97176845d25badb770223c149241f810a83288d Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 2 Aug 2018 01:50:09 +0200 Subject: Consistent filesystem path quoting in shell scripts. --- TLD/generate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'TLD') 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 -- cgit v1.2.3