|
@@ -108,6 +108,7 @@ export const BashTool = Tool.define("bash", async () => {
|
|
|
for (const arg of command.slice(1)) {
|
|
for (const arg of command.slice(1)) {
|
|
|
if (arg.startsWith("-") || (command[0] === "chmod" && arg.startsWith("+"))) continue
|
|
if (arg.startsWith("-") || (command[0] === "chmod" && arg.startsWith("+"))) continue
|
|
|
const resolved = await $`realpath ${arg}`
|
|
const resolved = await $`realpath ${arg}`
|
|
|
|
|
+ .cwd(cwd)
|
|
|
.quiet()
|
|
.quiet()
|
|
|
.nothrow()
|
|
.nothrow()
|
|
|
.text()
|
|
.text()
|