savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] administration/infra/bin log-accum-cleaner.sh


From: Elfyn McBratney
Subject: [Savannah-cvs] administration/infra/bin log-accum-cleaner.sh
Date: Sun, 22 Aug 2004 12:35:15 -0400

CVSROOT:        /cvsroot/administration
Module name:    administration
Branch:         
Changes by:     Elfyn McBratney <address@hidden>        04/08/22 16:30:50

Modified files:
        infra/bin      : log-accum-cleaner.sh 

Log message:
        Remove safety net.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/administration/administration/infra/bin/log-accum-cleaner.sh.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: administration/infra/bin/log-accum-cleaner.sh
diff -u administration/infra/bin/log-accum-cleaner.sh:1.1 
administration/infra/bin/log-accum-cleaner.sh:1.2
--- administration/infra/bin/log-accum-cleaner.sh:1.1   Sun Aug 22 16:26:59 2004
+++ administration/infra/bin/log-accum-cleaner.sh       Sun Aug 22 16:30:49 2004
@@ -3,7 +3,7 @@
 #
 # Script to clean the chroot's /var/run/log_accum dirs.
 #
-# $Id: log-accum-cleaner.sh,v 1.1 2004/08/22 16:26:59 beu Exp $
+# $Id: log-accum-cleaner.sh,v 1.2 2004/08/22 16:30:49 beu Exp $
 
 # The basename of this script
 prog=`basename $0`
@@ -24,10 +24,7 @@
     test ! -d $projdir/var/run/log_accum && return 0
 
     # Remove cruft
-    for i in `find $projdir/var/run/log_accum -type f -atime +1 -print`
-    do
-        echo rm $i
-    done
+    find $projdir/var/run/log_accum -type f -atime +1 -print |xargs rm -f
 }
 
 # If we have an arguments we only clean up in those directories




reply via email to

[Prev in Thread] Current Thread [Next in Thread]