diff --git a/packages/opencode/src/bun/index.ts b/packages/opencode/src/bun/index.ts index 2819607de..e74cb5bd0 100644 --- a/packages/opencode/src/bun/index.ts +++ b/packages/opencode/src/bun/index.ts @@ -29,7 +29,7 @@ export namespace BunProc { export function which() { return process.argv0 !== "bun" - ? path.resolve(process.cwd(), process.argv0) + ? path.resolve(process.cwd(), process.argv[0]) : "bun" } }