We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c2909 commit e5ddcfeCopy full SHA for e5ddcfe
Gulpfile.ts
@@ -69,7 +69,7 @@ function exec(cmd: string, args: string[], complete: () => void = (() => {}), er
69
console.log(`${cmd} ${args.join(" ")}`);
70
// TODO (weswig): Update child_process types to add windowsVerbatimArguments to the type definition
71
const subshellFlag = isWin ? "/c" : "-c";
72
- const command = isWin ? [cmd, ...args] : [`${cmd} ${args.join(" ")}`];
+ const command = isWin ? [cmd.indexOf(" ") >= 0 ? `"${cmd}"` : cmd, ...args] : [`${cmd} ${args.join(" ")}`];
73
const ex = cp.spawn(isWin ? "cmd" : "/bin/sh", [subshellFlag, ...command], { stdio: "inherit", windowsVerbatimArguments: true } as any);
74
ex.on("exit", (code) => code === 0 ? complete() : error(/*e*/ undefined, code));
75
ex.on("error", error);
0 commit comments