fix bunfile bug

This commit is contained in:
Dax Raad
2025-06-10 18:23:19 -04:00
parent 49110f7412
commit ca3c22dc12
6 changed files with 18 additions and 16 deletions

View File

@@ -8,9 +8,9 @@ export namespace BunProc {
options?: Bun.SpawnOptions.OptionsObject<any, any, any>,
) {
const root =
process.argv0 !== "bun"
process.argv0 !== "bun" && false
? path.resolve(process.cwd(), process.argv0)
: process.argv0
: "bun"
log.info("running", {
cmd: [root, ...cmd],
options,