]> git.pld-linux.org Git - packages/spamassassin.git/commitdiff
- quote $() in [ ], to avoid syntax error when command return empyt string
authorpawelz <pawelz@pld-linux.org>
Mon, 29 Mar 2010 10:51:53 +0000 (10:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- show; fail not show && fail (both pointed by glen, thx)

Changed files:
    spamassassin-spamd.init -> 1.11

spamassassin-spamd.init

index 76863b537ea13bdea3b73259d150ed479d7e628b..3865ef23a138dfbfe8de68dc2295114a6f22ba8c 100644 (file)
@@ -36,8 +36,8 @@ start() {
        fi
 
        # Check if database is installed.
-       if [ $(find /var/lib/spamassassin/ -name '*.cf' | wc -l) == 0 ]; then
-               show 'Spamassassin database not found. Run sa-update first.' && fail
+       if [ "$(find /var/lib/spamassassin/ -name '*.cf' | wc -l)" == 0 ]; then
+               show 'Spamassassin database not found. Run sa-update first.'; fail
                return 1
        fi
 
This page took 0.028806 seconds and 4 git commands to generate.