summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-01 17:53:20 -0600
committerAiden Cline <[email protected]>2026-01-01 17:53:20 -0600
commit7aa1dbe8731c687e09401e9a59a19ebd380182b5 (patch)
tree661db0ab7ca8da0b8a918b72cf4af24e24b66d20
parent76186d19f3d45134ce5d2fac5959e1b02aadbb21 (diff)
downloadopencode-7aa1dbe8731c687e09401e9a59a19ebd380182b5.tar.gz
opencode-7aa1dbe8731c687e09401e9a59a19ebd380182b5.zip
test: fix bash test
-rw-r--r--packages/opencode/src/tool/bash.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts
index 46058b665..965e8d545 100644
--- a/packages/opencode/src/tool/bash.ts
+++ b/packages/opencode/src/tool/bash.ts
@@ -108,6 +108,7 @@ export const BashTool = Tool.define("bash", async () => {
for (const arg of command.slice(1)) {
if (arg.startsWith("-") || (command[0] === "chmod" && arg.startsWith("+"))) continue
const resolved = await $`realpath ${arg}`
+ .cwd(cwd)
.quiet()
.nothrow()
.text()