1
0
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:
Peter 2023-02-15 07:08:05 +00:00 committed by GitHub
parent caef0735fd
commit 3564f73369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
} }