summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-23 12:29:15 -0600
committerAiden Cline <[email protected]>2025-11-23 12:29:15 -0600
commit27ae34168474273d7c1aa122069d82b839758974 (patch)
tree1f3b3f48f03b866baaea7fcdf6aef25549855261
parent25b3846694fd548074e72a4cc694d5e7374f6235 (diff)
downloadopencode-27ae34168474273d7c1aa122069d82b839758974.tar.gz
opencode-27ae34168474273d7c1aa122069d82b839758974.zip
fix bash tool wsl
-rw-r--r--packages/opencode/src/tool/bash.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts
index 83a5c8206..d8af0a77f 100644
--- a/packages/opencode/src/tool/bash.ts
+++ b/packages/opencode/src/tool/bash.ts
@@ -70,6 +70,12 @@ export const BashTool = Tool.define("bash", async () => {
return "/bin/zsh"
}
+ if (process.platform === "win32") {
+ // Let Bun / Node pick COMSPEC (usually cmd.exe)
+ // or explicitly:
+ return process.env.COMSPEC || true
+ }
+
const bash = Bun.which("bash")
if (bash) {
return bash