summaryrefslogtreecommitdiff
path: root/scripts/install/install-image
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-12-22 02:33:29 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-12-22 02:33:29 -0800
commitd8dfabfd0422de3b2af240ce2c4631af51fe1dd0 (patch)
tree5a899ee32f2bae6a60b27e2b62742cd8805704a2 /scripts/install/install-image
parent09ea3f3593793a86d997f918d3f3b0fa79355d94 (diff)
downloadvyatta-cfg-quagga-d8dfabfd0422de3b2af240ce2c4631af51fe1dd0.tar.gz
vyatta-cfg-quagga-d8dfabfd0422de3b2af240ce2c4631af51fe1dd0.zip
Add more error recovery and disk space checking.
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