diff --git a/lib/modules/validator.js b/lib/modules/validator.js index 9d8670db..25ecb85f 100644 --- a/lib/modules/validator.js +++ b/lib/modules/validator.js @@ -1,5 +1,3 @@ -const Promise = require('bluebird'); -const drivelist = Promise.promisifyAll(require('drivelist')); const fs = require('fs-extra'); const hasbin = require('hasbin'); const path = require('path'); @@ -28,25 +26,13 @@ class Validator { else { hasbin('vagrant', async function (hasVagrant) { if(hasVagrant){ - let drives = (await drivelist.listAsync()).map(d => d.mountpoints[0].path); - drives.forEach(drive => { - fs.access(path.resolve(path.join(drive, `/Program Files/Oracle/VirtualBox`)), err => { - if (err){ - fs.access(path.resolve(path.join(drive, `/Program Files (x86)/Oracle/VirtualBox`)), err => { - if(err) { - fs.access(path.resolve(path.join(process.env.PROGRAMFILES, `/Oracle/VirtualBox`)), err => { - if(err){ - // throw dependencyNotFound; - print.warning(dependencyNotFound, 1) - return true; - } - }); - } - }); - } + fs.access(path.resolve(path.join(process.env.PROGRAMFILES, `/Oracle/VirtualBox`)), err => { + if (err) { + // throw dependencyNotFound; + print.warning(dependencyNotFound, 1); return true; - }); - }) + } + }); } else { // throw dependencyNotFound; print.warning(dependencyNotFound, 1)