Explorar o código

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

Matt Zimmerman %!s(int64=21) %!d(string=hai) anos
pai
achega
60ea46b255
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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