]> git.donarmstrong.com Git - bin.git/commitdiff
fix test
authorDon Armstrong <don@donarmstrong.com>
Wed, 12 Feb 2014 17:17:19 +0000 (09:17 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 12 Feb 2014 17:17:19 +0000 (09:17 -0800)
learn_from_spam

index 92615ba2d39473db2771348432f4820d1687ae02..453841f7e0445ae12d6042132d35bbe9d5369fb7 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash
 
-if [ $0 eq "learn_from_spam" ]; then 
+if [ "$0" = "learn_from_spam" ]; then 
     for file in "$@"; do
         spamassassin -r < "$file";
         spamassassin -R < "$file";
     done;
-elif [ $0 == "learn_from_ham" ]; then
+elif [ "$0" = "learn_from_ham" ]; then
     for file in "$@"; do
         spamassassin -k < "$file";
         spamassassin -W < "$file";