1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Fix detection of VBoxManage.exe location

Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
Jeffrey Morgan
2015-10-11 17:37:38 -07:00
parent 8e0fbecb05
commit b1e77fb8ff

View File

@@ -4,7 +4,12 @@ trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong... Press any ke
VM=default
DOCKER_MACHINE=./docker-machine.exe
VBOXMANAGE=/$(reg query HKEY_LOCAL_MACHINE\\SOFTWARE\\Oracle\\VirtualBox //v InstallDir | grep InstallDir | awk '{print substr($0, index($0,$3))}' | sed 's/\\/\//g' | sed 's/://')VBoxManage.exe
if [ ! -z "$VBOX_MSI_INSTALL_PATH" ]; then
VBOXMANAGE=${VBOX_MSI_INSTALL_PATH}VBoxManage.exe
else
VBOXMANAGE=${VBOX_INSTALL_PATH}VBoxManage.exe
fi
BLUE='\033[1;34m'
GREEN='\033[0;32m'