You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2008/04/21 21:24:21 UTC
svn commit: r650230 - /spamassassin/trunk/masses/rule-qa/nightly-slave-stop
Author: jm
Date: Mon Apr 21 12:24:17 2008
New Revision: 650230
URL: http://svn.apache.org/viewvc?rev=650230&view=rev
Log:
avoid 'set -e' problems when stopping slaves
Modified:
spamassassin/trunk/masses/rule-qa/nightly-slave-stop
Modified: spamassassin/trunk/masses/rule-qa/nightly-slave-stop
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/nightly-slave-stop?rev=650230&r1=650229&r2=650230&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/nightly-slave-stop (original)
+++ spamassassin/trunk/masses/rule-qa/nightly-slave-stop Mon Apr 21 12:24:17 2008
@@ -16,9 +16,17 @@
# and clean out the client-side caches of old cached mail
ssh $host \
find $clienttree/cs_cache/. -type f -mtime +180 -print > o
-[ -s o ] && ssh $host xargs rm < o
+if [ -s o ] ; then
+ ssh $host xargs rm < o
+else
+ true
+fi
ssh $host \
find $clienttree/cs_cache/. -depth -type d -empty -print > o
-[ -s o ] && ssh $host xargs rmdir < o
+if [ -s o ] ; then
+ ssh $host xargs rmdir < o
+else
+ true
+fi