Remove empty ISOs if download fails
This commit is contained in:
parent
53c25aca09
commit
ba7bd8d43b
|
@ -86,7 +86,7 @@ prepare_iso() {
|
||||||
|
|
||||||
if [[ ! -f artifacts/${srcliveisofile} ]]; then
|
if [[ ! -f artifacts/${srcliveisofile} ]]; then
|
||||||
echo -n "Downloading Debian Live ISO... "
|
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."
|
echo "done."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue