Skip to content

Commit eb96d08

Browse files
Merge pull request #96 from colonelpopcorn/bug/fix-windows-path
2 parents f8c9432 + 7cc0dc6 commit eb96d08

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/virtualbox.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,9 @@ class Virtualbox {
491491
this._logging.info(host_platform);
492492
if (/^win/.test(host_platform)) {
493493
// Path may not contain VBoxManage.exe but it provides this environment variable
494-
var vBoxInstallPath =
494+
const vBoxInstallPath =
495495
process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH;
496-
this._vBoxManageBinary =
497-
'"' + vBoxInstallPath + '\\VBoxManage.exe' + '" ';
496+
this._vBoxManageBinary = `${vBoxInstallPath}VBoxManage.exe`;
498497
} else if (/^darwin/.test(host_platform) || /^linux/.test(host_platform)) {
499498
// Mac OS X and most Linux use the same binary name, in the path
500499
this._vBoxManageBinary = 'vboxmanage';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "virtualbox",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A library to interact with VirtualBox.",
55
"author": "Azer Koculu <[email protected]>",
66
"license": "MIT",

0 commit comments

Comments
 (0)