1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +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) => {
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));
}