Skip to content

Commit 8144cd1

Browse files
committed
chore: wip
1 parent bfb40b6 commit 8144cd1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.stacks/core/buddy/src/commands/cloud.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,12 @@ export function cloud(buddy: CLI) {
157157
// for some still unknown reason to me (Chris), sometimes, running this
158158
// command once is not enough to remove all resources, so we loop
159159
// over it a few times to ensure everything is removed
160+
log.info('Final cleanups. One moment...')
160161
for (let i = 0; i < 3; i++) {
161162
await runCommand('buddy cloud:clean-up', {
162163
...options,
163164
cwd: p.projectPath(),
164-
stdin: 'inherit',
165+
stdin: 'ignore',
165166
})
166167
}
167168

.stacks/core/cli/src/exec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ export async function exec(command: string | string[], options?: CliOptions): Pr
3333
// eslint-disable-next-line no-console
3434
console.log('exec', { command, cmd, options })
3535

36+
const stdout = options?.stdin ? options.stdin : (options?.stdout || 'inherit')
37+
const stderr = options?.stderr || 'inherit'
3638
const proc = Bun.spawn(cmd, {
3739
...options,
38-
stdout: options?.stdout || 'inherit',
39-
stderr: options?.stderr || 'inherit',
40+
stdout,
41+
stderr,
4042
cwd: options?.cwd || import.meta.dir,
4143
// env: { ...e, ...options?.env },
4244
onExit(subprocess, exitCode, signalCode, error) {

0 commit comments

Comments
 (0)