diff --git a/plop/commands/testCommand.ts b/plop/commands/testCommand.ts index ffa97e3..789f08c 100644 --- a/plop/commands/testCommand.ts +++ b/plop/commands/testCommand.ts @@ -39,7 +39,7 @@ export function testCommand(plop: NodePlopAPI) { exec('npm prefix -g'), - exec(`echo $Env:PATH`, { shell: true }), + exec(`echo $Env:PATH`), exec(`dir D:\\a\\gobot\\.gobot-test-cache\\npm`), diff --git a/plop/commands/util/exec.ts b/plop/commands/util/exec.ts index 5f1ffc8..710cbd8 100644 --- a/plop/commands/util/exec.ts +++ b/plop/commands/util/exec.ts @@ -15,6 +15,7 @@ export const exec: typeof spawn = async (cmd, _options, onProc) => { ..._options?.env, }, } + console.log(process.env.PATH) const code = await spawn(cmd, options, onProc) return code }