Quote an argument to a command.
authorShlomi Fish <shlomif@shlomifish.org>
Fri, 22 Apr 2016 10:59:59 +0000 (13:59 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Fri, 22 Apr 2016 10:59:59 +0000 (13:59 +0300)
fortune-mod/tests/scripts/check-fortune-file.sh

index 24fe0e0b720705c0969059642b761aafcc50a2dd..41b84bdd927e9b530807265c1a5fbdf0b012ef9a 100644 (file)
@@ -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