From 4e23b7f65403cc4d67ad08b178614988faecdc03 Mon Sep 17 00:00:00 2001 From: ymat19 Date: Sun, 25 Jan 2026 18:18:53 +0900 Subject: [PATCH] fix: use exact match for win32 platform detection The previous check used includes("win") which incorrectly matched "darwin" (macOS) because it contains "win". This caused cmd.exe to be used on macOS instead of /bin/sh. --- src/infra/node-shell.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infra/node-shell.ts b/src/infra/node-shell.ts index 26d5ff1d3..29ac52e15 100644 --- a/src/infra/node-shell.ts +++ b/src/infra/node-shell.ts @@ -2,7 +2,7 @@ export function buildNodeShellCommand(command: string, platform?: string | null) const normalized = String(platform ?? "") .trim() .toLowerCase(); - if (normalized.includes("win")) { + if (normalized === "win32") { return ["cmd.exe", "/d", "/s", "/c", command]; } return ["/bin/sh", "-lc", command];