From: Shlomi Fish Date: Fri, 22 Apr 2016 10:59:59 +0000 (+0300) Subject: Quote an argument to a command. X-Git-Tag: fortune-mod-1.99.3~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38fe44380bc19a795dd0f4aa9fd0023b7ca1ba45;p=fortune-mod Quote an argument to a command. --- diff --git a/fortune-mod/tests/scripts/check-fortune-file.sh b/fortune-mod/tests/scripts/check-fortune-file.sh index 24fe0e0..41b84bd 100644 --- a/fortune-mod/tests/scripts/check-fortune-file.sh +++ b/fortune-mod/tests/scripts/check-fortune-file.sh @@ -4,7 +4,7 @@ i="$1" shift echo -n "Testing "$i" ..." -if ! tail -n 1 "$i" | grep -q ^%$ ; then +if ! tail -n 1 "$i" | grep -q '^%$' ; then echo " failed % check" echo "Fortune cookie file does not end in a single %" exit 1