packages: spamassassin/spamassassin-spamd.init - quote $() in [ ], to avoid...

pawelz pawelz at pld-linux.org
Mon Mar 29 12:51:59 CEST 2010


Author: pawelz                       Date: Mon Mar 29 10:51:59 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- quote $() in [ ], to avoid syntax error when command return empyt string
- show; fail not show && fail (both pointed by glen, thx)

---- Files affected:
packages/spamassassin:
   spamassassin-spamd.init (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/spamassassin/spamassassin-spamd.init
diff -u packages/spamassassin/spamassassin-spamd.init:1.10 packages/spamassassin/spamassassin-spamd.init:1.11
--- packages/spamassassin/spamassassin-spamd.init:1.10	Sat Mar 27 21:07:43 2010
+++ packages/spamassassin/spamassassin-spamd.init	Mon Mar 29 12:51:53 2010
@@ -36,8 +36,8 @@
 	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
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/spamassassin/spamassassin-spamd.init?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list