Skip to content
Browse files

Adding INSTALL_PATH option

  • Loading branch information...
1 parent 071f921 commit 9861e23db38026fa7b8e5baa171aa979514639a0 Adam Jahnke committed Sep 28, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 ievms.sh
View
10 ievms.sh
@@ -11,11 +11,13 @@ log() { printf "$*\n" ; return $? ; }
fail() { log "\nERROR: $*\n" ; exit 1 ; }
create_home() {
- ievms_home="${HOME}/.ievms"
- if INSTALL_PATH
+ if [[ -z "${INSTALL_PATH}" ]]
then
- ievms_home="${INSTALL_PATH}/.ievms"
+ ievms_home="${HOME}/.ievms"
+ else
+ ievms_home="${INSTALL_PATH}/.ievms"
fi
+
mkdir -p "${ievms_home}"
cd "${ievms_home}"
}
@@ -154,7 +156,7 @@ build_ievm() {
log "Checking for existing ${vm} VM"
if ! VBoxManage showvminfo "${vm}"
then
-
+
case $kernel in
Darwin) ga_iso="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso" ;;
Linux) ga_iso="/usr/share/virtualbox/VBoxGuestAdditions.iso" ;;

0 comments on commit 9861e23

Please sign in to comment.
Something went wrong with that request. Please try again.