mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Show CLI output (#17756)
This commit is contained in:
parent
caef0735fd
commit
3564f73369
@ -98,7 +98,9 @@ async function runInShell(command, args, output) {
|
||||
await new Promise((resolve, reject) => {
|
||||
const childProcess = spawn(command, args);
|
||||
childProcess.stdout.setEncoding('utf8');
|
||||
childProcess.stderr.setEncoding('utf8');
|
||||
childProcess.stdout.pipe(process.stdout);
|
||||
childProcess.stderr.pipe(process.stderr);
|
||||
if (output) {
|
||||
childProcess.stdout.pipe(fs.createWriteStream(output));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user