Use find|xargs rather than find -exec in cron.daily
authorMatt Zimmerman <matt.zimmerman@canonical.com>
Mon, 14 Mar 2005 21:09:25 +0000 (21:09 +0000)
committerMatt Zimmerman <matt.zimmerman@canonical.com>
Mon, 14 Mar 2005 21:09:25 +0000 (21:09 +0000)
debian/apt.cron.daily

index ffc7044..982a35d 100644 (file)
@@ -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