Skip to content

Commit

Permalink
only apply fix on windows, as necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Sep 30, 2024
1 parent a266555 commit 8c8a92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export function execute(command: string, args?: string[], outputConsumer?: Outpu

const spawn_opts: proc.SpawnOptions = {
env: final_env,
shell: options.shell ?? determineShell(command)
shell: options.shell ?? process.platform === "win32" ? determineShell(command) : undefined
};
if (options?.cwd !== undefined) {
util.createDirIfNotExistsSync(options.cwd);
Expand Down

0 comments on commit 8c8a92e

Please sign in to comment.