From bc570c29183f20139f8a80aa54d219cc1a590a2b Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 3 Jan 2022 15:23:08 +0800 Subject: [PATCH] fix(cli): shell: true instead of bash --- cli/src/spawn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/spawn.ts b/cli/src/spawn.ts index d14eae8c..1e21b597 100644 --- a/cli/src/spawn.ts +++ b/cli/src/spawn.ts @@ -11,7 +11,7 @@ export function spawn( const [cmd, ...args] = command.split(' ').map((s) => s.trim()) debug(`execute ${cmd} ${args.join(' ')}`) return new Promise((resolve, reject) => { - const spawnStream = _spawn(cmd, args, { ...options, shell: 'bash' }) + const spawnStream = _spawn(cmd, args, { ...options, shell: true }) const chunks: Buffer[] = [] process.stdin.pipe(spawnStream.stdin) spawnStream.stdout?.on('data', (chunk) => {