diff --git a/src/PhpCommand.ts b/src/PhpCommand.ts index 23f0a4f..05ca0a6 100644 --- a/src/PhpCommand.ts +++ b/src/PhpCommand.ts @@ -13,7 +13,8 @@ export default class PhpCommand { } const exec = spawn(this.cmd, this.args, { - cwd: cwd || this.cwd + cwd: cwd || this.cwd, + shell: platform() === "win32" ? true : undefined }); } @@ -26,4 +27,4 @@ export default class PhpCommand { return `${this.cmd}${stringifiedArgs}`; } -} \ No newline at end of file +}