From 8c8a92e09f0699da8d659a9c7a5c0a4e71cbea93 Mon Sep 17 00:00:00 2001 From: Garrett Campbell Date: Mon, 30 Sep 2024 11:04:11 -0400 Subject: [PATCH] only apply fix on windows, as necessary --- src/proc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proc.ts b/src/proc.ts index 4b47b2820..59f80b261 100644 --- a/src/proc.ts +++ b/src/proc.ts @@ -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);