summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-05 09:29:25 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-05 09:29:25 +0000
commitca8c6d3395b4a4f1ef5903ded348e65b160a8446 (patch)
tree975033da7c70e54e3f404fb667e7efc4e814adc8
parent43196982308c7632398f4140a49d9daa57a5ab57 (diff)
downloadgenivi-initial-setup-ca8c6d3395b4a4f1ef5903ded348e65b160a8446.tar.gz
Stop using 'false' to exit the script
-rwxr-xr-xcreate-vm8
1 files changed, 4 insertions, 4 deletions
diff --git a/create-vm b/create-vm
index ae39ced..f2cdaf3 100755
--- a/create-vm
+++ b/create-vm
@@ -12,19 +12,19 @@ VM_VBOX_NAME=$(echo "$VM_NAME" | sed 's|\s|\.|g')
if [ -z "$VM_NAME" ]; then
echo "A name must be specified for this virtual machine"
echo "Usage: $0 VM_NAME INSTALL_DIRECTORY"
- false
+ exit 1
fi
if [ -z "$INSTALL_DIRECTORY" ]; then
echo "An install directory must be specified for this virtual machine"
echo "Usage: $0 VM_NAME INSTALL_DIRECTORY"
- false
+ exit 1
fi
# Check that we don't already have a VM of this name
if [ -e "$VM_NAME.vdi" ]; then
echo "A VM by this name already exists"
- false
+ exit 1
fi
# Ensuring VirtualBox is installed
@@ -40,7 +40,7 @@ else
sudo apt-get install virtualbox-ose
else
echo "I do not know how to install VirtualBox on this system. Please install manually"
- false
+ exit 1
fi
fi