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

[dak/master] Use "find ... -delete" instead of "find ... | xargs rm"



---
 config/debian-security/cron.daily | 2 +-
 config/debian/dinstall.functions  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily
index 8b05a30..9417a85 100755
--- a/config/debian-security/cron.daily
+++ b/config/debian-security/cron.daily
@@ -19,7 +19,7 @@ cd $overridedir
 for file in override*.gz; do
     zcat -- "$file" > "${file%.gz}"
 done
-find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm
+find . -maxdepth 1 -mindepth 1 -type l -delete
 
 for suite in oldstable stable testing; do
     case $suite in
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index f7510a3..6abf1b8 100644
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -542,7 +542,7 @@ function stats() {
 function cleantransactions() {
     log "Cleanup transaction ids older than 3 months"
     cd $base/backup/
-    find -maxdepth 1 -mindepth 1 -type f -name 'txid_*' -mtime +90 -print0 | xargs -0 --no-run-if-empty rm
+    find -maxdepth 1 -mindepth 1 -type f -name 'txid_*' -mtime +90 -delete
 }
 
 function logstats() {
-- 
2.1.4


Reply to: