mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
ignore: revert
This commit is contained in:
@@ -15,7 +15,7 @@ export namespace BunProc {
|
||||
cmd: [which(), ...cmd],
|
||||
...options,
|
||||
})
|
||||
const result = Bun.spawnSync([which(), ...cmd], {
|
||||
const result = Bun.spawn([which(), ...cmd], {
|
||||
...options,
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
@@ -25,9 +25,9 @@ export namespace BunProc {
|
||||
BUN_BE_BUN: "1",
|
||||
},
|
||||
})
|
||||
const stdout = result.stdout!.toString()
|
||||
const stderr = result.stderr!.toString()
|
||||
const code = result.exitCode
|
||||
const code = await result.exited
|
||||
const stdout = await result.stdout.text()
|
||||
const stderr = await result.stderr.text()
|
||||
log.info("done", {
|
||||
code,
|
||||
stdout,
|
||||
|
||||
Reference in New Issue
Block a user