make_mirror.sh: test if debian-*.qcow exists before removing it

main
parent 9945e65701
commit 3b953d4398
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -59,7 +59,9 @@ deletecache() {
esac
done
for f in "$dir/debian-"*.qcow; do
rm --one-file-system "$f"
if [ -e "$f" ]; then
rm --one-file-system "$f"
fi
done
if [ -e "$dir/debian/pool/main" ]; then
rm --one-file-system --recursive "$dir/debian/pool/main"

Loading…
Cancel
Save