Enclose global gulp path with quotes #68413 (#68418)

it will allow to have it working when path contains space

Fixes #68413
This commit is contained in:
Aurélien Pupier 2019-02-13 09:41:17 +01:00 committed by Alex Ross
parent 500376fd1c
commit 1acabe663a

View File

@ -122,7 +122,7 @@ class FolderDetector {
if (platform === 'win32' && await exists(path.join(rootPath!, 'node_modules', '.bin', 'gulp.cmd'))) {
const globalGulp = path.join(process.env.APPDATA ? process.env.APPDATA : '', 'npm', 'gulp.cmd');
if (await exists(globalGulp)) {
gulpCommand = globalGulp;
gulpCommand = '"' + globalGulp + '"';
} else {
gulpCommand = path.join('.', 'node_modules', '.bin', 'gulp.cmd');
}