]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/dinstall.functions
Use "find ... -delete" instead of "find ... | xargs rm"
[dak.git] / config / debian / dinstall.functions
index f7510a3bef7a422616cc7a2c86e2036e08e9f1cf..6abf1b84f9cec4a033a9c257bb8582d6b2f6c7ba 100644 (file)
@@ -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() {