Fixed bug where the VirtualBox shared folder would attempt to be created twice on Windows

This commit is contained in:
Jeffrey Morgan 2015-06-08 15:33:46 -07:00
parent 103af8b530
commit 4d5b9861dd
1 changed files with 0 additions and 10 deletions

View File

@ -66,16 +66,6 @@ var _steps = [{
yield machine.rm();
}
yield machine.create();
if(util.isWindows()) {
let home = util.home();
let driveLetter = home.charAt(0);
let parts = home.split('\\').slice(0, -1);
let usersDirName = parts[parts.length-1];
let usersDirPath = parts.join('\\');
let shareName = driveLetter + '/' + usersDirName;
yield virtualBox.mountSharedDir(machine.name(), shareName, usersDirPath);
yield machine.start();
}
return;
}