diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-05 09:29:25 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-05 09:29:25 +0000 |
commit | ca8c6d3395b4a4f1ef5903ded348e65b160a8446 (patch) | |
tree | 975033da7c70e54e3f404fb667e7efc4e814adc8 | |
parent | 43196982308c7632398f4140a49d9daa57a5ab57 (diff) | |
download | genivi-initial-setup-ca8c6d3395b4a4f1ef5903ded348e65b160a8446.tar.gz |
Stop using 'false' to exit the script
-rwxr-xr-x | create-vm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |