mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
fix: make bash tool respect $SHELL (#3494)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
96a2f5268c
commit
b5d0c56b4c
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ export const BashTool = Tool.define("bash", {
|
|||
}
|
||||
|
||||
const proc = spawn(params.command, {
|
||||
shell: true,
|
||||
shell: process.env.SHELL ?? true, // $SHELL if set, otherwise default shell
|
||||
cwd: Instance.directory,
|
||||
env: {
|
||||
...process.env,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue