Remove empty ISOs if download fails
This commit is contained in:
parent
4531600a5a
commit
8368a302a7
|
@ -86,7 +86,7 @@ prepare_iso() {
|
|||
|
||||
if [[ ! -f artifacts/${srcliveisofile} ]]; then
|
||||
echo -n "Downloading Debian Live ISO... "
|
||||
wget -O artifacts/${srcliveisofile} ${srcliveisourl} &>/dev/null || fail "Error downloading source ISO."
|
||||
wget -O artifacts/${srcliveisofile} ${srcliveisourl} &>/dev/null || { rm -f artifacts/${srcliveisofile}; fail "Error downloading source ISO." }
|
||||
echo "done."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue