sdk fixes

This commit is contained in:
Aiden McClelland
2025-11-07 11:20:13 -07:00
parent e7847d0e88
commit 29c97fcbb0
2 changed files with 32 additions and 17 deletions

View File

@@ -77,10 +77,14 @@ export class CommandController<
if (exec.runAsInit) {
childProcess = await subcontainer!.launch(commands, {
env: exec.env,
user: exec.user,
cwd: exec.cwd,
})
} else {
childProcess = await subcontainer!.spawn(commands, {
env: exec.env,
user: exec.user,
cwd: exec.cwd,
stdio: exec.onStdout || exec.onStderr ? "pipe" : "inherit",
})
}