make_mirror.sh: test if debian-*.qcow exists before removing it
This commit is contained in:
parent
9945e65701
commit
3b953d4398
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ deletecache() {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
for f in "$dir/debian-"*.qcow; do
|
for f in "$dir/debian-"*.qcow; do
|
||||||
rm --one-file-system "$f"
|
if [ -e "$f" ]; then
|
||||||
|
rm --one-file-system "$f"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
if [ -e "$dir/debian/pool/main" ]; then
|
if [ -e "$dir/debian/pool/main" ]; then
|
||||||
rm --one-file-system --recursive "$dir/debian/pool/main"
|
rm --one-file-system --recursive "$dir/debian/pool/main"
|
||||||
|
|
Loading…
Reference in a new issue