Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3893f594e | ||
|
|
2457617bdc |
+2
-1
@@ -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.stdout,result.stderr)
|
||||
if (result.error) throw result.error
|
||||
if (result.status !== 0) process.exit(result.status)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user