mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix bash tool wsl
This commit is contained in:
parent
25b3846694
commit
27ae341684
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue