make_mirror.sh: add --no-run-if-empty to xargs call

This commit is contained in:
Johannes 'josch' Schauer 2019-02-24 11:06:14 +01:00
parent a0e2c70eba
commit 1b18b11a86
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -411,5 +411,5 @@ if [ -e $oldcachedir/debian-security/pool/updates/main ]; then
fi fi
# now the rest should only be empty directories # now the rest should only be empty directories
if [ -e $oldcachedir ]; then if [ -e $oldcachedir ]; then
find $oldcachedir -depth -print0 | xargs -0 rmdir find $oldcachedir -depth -print0 | xargs -0 --no-run-if-empty rmdir
fi fi