From: Matt Zimmerman Date: Mon, 14 Mar 2005 21:09:25 +0000 (+0000) Subject: Use find|xargs rather than find -exec in cron.daily X-Git-Tag: 0.7.24ubuntu1~344 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/60ea46b25524b7b48f6518306a535d86f1e7676c Use find|xargs rather than find -exec in cron.daily --- diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index ffc7044d1..982a35d74 100644 --- a/debian/apt.cron.daily +++ b/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