Remove empty ISOs if download fails
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user