Skip to content

Commit

Permalink
Merge pull request #96 from colonelpopcorn/bug/fix-windows-path
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpopcorn authored Aug 24, 2020
2 parents f8c9432 + 7cc0dc6 commit eb96d08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/virtualbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,9 @@ class Virtualbox {
this._logging.info(host_platform);
if (/^win/.test(host_platform)) {
// Path may not contain VBoxManage.exe but it provides this environment variable
var vBoxInstallPath =
const vBoxInstallPath =
process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH;
this._vBoxManageBinary =
'"' + vBoxInstallPath + '\\VBoxManage.exe' + '" ';
this._vBoxManageBinary = `${vBoxInstallPath}VBoxManage.exe`;
} else if (/^darwin/.test(host_platform) || /^linux/.test(host_platform)) {
// Mac OS X and most Linux use the same binary name, in the path
this._vBoxManageBinary = 'vboxmanage';
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "virtualbox",
"version": "1.1.0",
"version": "1.1.1",
"description": "A library to interact with VirtualBox.",
"author": "Azer Koculu <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit eb96d08

Please sign in to comment.