From 3b953d4398ce5031f0e80447a99d3fbb2b1c9b21 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 16 Jan 2023 07:44:13 +0100 Subject: [PATCH] make_mirror.sh: test if debian-*.qcow exists before removing it --- make_mirror.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"