fix(cli): shell: true instead of bash
This commit is contained in:
parent
881fd52063
commit
bc570c2918
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function spawn(
|
||||||
const [cmd, ...args] = command.split(' ').map((s) => s.trim())
|
const [cmd, ...args] = command.split(' ').map((s) => s.trim())
|
||||||
debug(`execute ${cmd} ${args.join(' ')}`)
|
debug(`execute ${cmd} ${args.join(' ')}`)
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const spawnStream = _spawn(cmd, args, { ...options, shell: 'bash' })
|
const spawnStream = _spawn(cmd, args, { ...options, shell: true })
|
||||||
const chunks: Buffer[] = []
|
const chunks: Buffer[] = []
|
||||||
process.stdin.pipe(spawnStream.stdin)
|
process.stdin.pipe(spawnStream.stdin)
|
||||||
spawnStream.stdout?.on('data', (chunk) => {
|
spawnStream.stdout?.on('data', (chunk) => {
|
||||||
|
|
Loading…
Reference in a new issue