mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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) => {
|
await new Promise((resolve, reject) => {
|
||||||
const childProcess = spawn(command, args);
|
const childProcess = spawn(command, args);
|
||||||
childProcess.stdout.setEncoding('utf8');
|
childProcess.stdout.setEncoding('utf8');
|
||||||
|
childProcess.stderr.setEncoding('utf8');
|
||||||
childProcess.stdout.pipe(process.stdout);
|
childProcess.stdout.pipe(process.stdout);
|
||||||
|
childProcess.stderr.pipe(process.stderr);
|
||||||
if (output) {
|
if (output) {
|
||||||
childProcess.stdout.pipe(fs.createWriteStream(output));
|
childProcess.stdout.pipe(fs.createWriteStream(output));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user