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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user