1 Commits
Author SHA1 Message Date
sugoidogo 2457617bdc redirect subcommand output to file
Main / release (push) Successful in 41s
2026-01-14 00:17:04 -08:00
+2 -1
View File
@@ -24,7 +24,8 @@ let config: { [key: string]: string } = {}
let index: { [key: string]: { [key: string]: string } } = {}
function sugoiSpawn(...command: string[]) {
const result = spawnSync(command.shift()!, command, { stdio: 'inherit' })
const result = spawnSync(command.shift()!, command, { stdio: 'pipe' })
console.log(result.output)
if (result.error) throw result.error
if (result.status !== 0) process.exit(result.status)
return result