From: Don Armstrong Date: Wed, 12 Feb 2014 17:17:19 +0000 (-0800) Subject: fix test X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c9bfb19d5ac117b5d3f91868d4bde2619bede409;p=bin.git fix test --- diff --git a/learn_from_spam b/learn_from_spam index 92615ba..453841f 100755 --- a/learn_from_spam +++ b/learn_from_spam @@ -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";