No longer need VBoxmanage.exe to be in PATH in Cygwin.
This commit is contained in:
parent
cea8c5dafd
commit
e0949085a0
|
@ -25,7 +25,7 @@ module VagrantPlugins
|
|||
# Set the path to VBoxManage
|
||||
@vboxmanage_path = "VBoxManage"
|
||||
|
||||
if Vagrant::Util::Platform.windows?
|
||||
if Vagrant::Util::Platform.windows? || Vagrant::Util::Platform.cygwin?
|
||||
@logger.debug("Windows. Trying VBOX_INSTALL_PATH for VBoxManage")
|
||||
|
||||
# On Windows, we use the VBOX_INSTALL_PATH environmental
|
||||
|
@ -33,6 +33,9 @@ module VagrantPlugins
|
|||
if ENV.has_key?("VBOX_INSTALL_PATH")
|
||||
# Get the path.
|
||||
path = ENV["VBOX_INSTALL_PATH"]
|
||||
if Vagrant::Util::Platform.cygwin?
|
||||
path = `cygpath -u '#{path}'`.chomp
|
||||
end
|
||||
@logger.debug("VBOX_INSTALL_PATH value: #{path}")
|
||||
|
||||
# There can actually be multiple paths in here, so we need to
|
||||
|
|
Loading…
Reference in New Issue