diff --git a/make_mirror.sh b/make_mirror.sh index 023bf5e..58a287c 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -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"