diff options
| author | Dax Raad <[email protected]> | 2025-05-28 14:16:56 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-28 14:17:02 -0400 |
| commit | 4767276a0e35deb0fd9cf44bbd7cb1157c5991f7 (patch) | |
| tree | 56323bb0bffdd4bca93316907ca975ab67e18bd3 /js/src/bun | |
| parent | 71bab45065a2ace8ea2f59d4f4856136ffd1b157 (diff) | |
| download | opencode-4767276a0e35deb0fd9cf44bbd7cb1157c5991f7.tar.gz opencode-4767276a0e35deb0fd9cf44bbd7cb1157c5991f7.zip | |
more
Diffstat (limited to 'js/src/bun')
| -rw-r--r-- | js/src/bun/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/bun/index.ts b/js/src/bun/index.ts index e921c825a..6eb6e1bde 100644 --- a/js/src/bun/index.ts +++ b/js/src/bun/index.ts @@ -7,7 +7,10 @@ export namespace BunProc { cmd: string[], options?: Bun.SpawnOptions.OptionsObject<any, any, any>, ) { - const root = path.resolve(process.cwd(), process.argv0); + const root = + process.argv0 !== "bun" + ? path.resolve(process.cwd(), process.argv0) + : process.argv0; log.info("running", { cmd: [root, ...cmd], options, |
