From 1b18b11a86f544c8d02de5b987eecd442099dba6 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 24 Feb 2019 11:06:14 +0100 Subject: [PATCH] make_mirror.sh: add --no-run-if-empty to xargs call --- make_mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index bde5c95..afea4e6 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -411,5 +411,5 @@ if [ -e $oldcachedir/debian-security/pool/updates/main ]; then fi # now the rest should only be empty directories if [ -e $oldcachedir ]; then - find $oldcachedir -depth -print0 | xargs -0 rmdir + find $oldcachedir -depth -print0 | xargs -0 --no-run-if-empty rmdir fi