diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-12-22 02:33:29 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-12-22 02:33:29 -0800 |
commit | d8dfabfd0422de3b2af240ce2c4631af51fe1dd0 (patch) | |
tree | 5a899ee32f2bae6a60b27e2b62742cd8805704a2 /scripts/install/install-image | |
parent | 09ea3f3593793a86d997f918d3f3b0fa79355d94 (diff) | |
download | vyatta-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-x | scripts/install/install-image | 2 |
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 |