Browse Source

Use find|xargs rather than find -exec in cron.daily

Matt Zimmerman 21 years ago
parent
commit
60ea46b255
1 changed files with 1 additions and 1 deletions
  1. 1 1
      debian/apt.cron.daily

+ 1 - 1
debian/apt.cron.daily

@@ -59,7 +59,7 @@ check_size_constraints()
 
     # check age
     if [ ! $MaxAge -eq 0 ]; then
-	find $Cache -name "*.deb"  -mtime +$MaxAge -exec rm -f {} \;
+	find $Cache -name "*.deb"  -mtime +$MaxAge -print0 | xargs -r -0 rm -f
     fi
     
     # check size