summaryrefslogtreecommitdiff
path: root/scripts/install/install-image
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install/install-image')
-rwxr-xr-xscripts/install/install-image2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index c201be3c..fd4fee7d 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -60,6 +60,7 @@ fetch_iso_by_url ()
curl -f -o $filename $NEW_ISO
if [ $? -ne 0 ]; then
echo "Unable to fetch ISO from $NEW_ISO"
+ rm -f $filename
exit 1
fi
@@ -78,6 +79,7 @@ fetch_iso_by_url ()
response=$(get_response "Yes" "Yes No Y N")
if [ "$response" == "no" ] || [ "$response" == "n" ]; then
+ rm -f $filename
fail_exit 'OK. Installation will not be performed.'
fi