Skip to content

Commit 0cd6cce

Browse files
committed
Don't output stderr from internal child process call to the terminal
1 parent d3c8a56 commit 0cd6cce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ export async function exec(command, arguments_) {
2424
@returns {string}
2525
*/
2626
export function execSync(command, arguments_) {
27-
return childProcess.execFileSync(command, arguments_, {encoding: 'utf8'}).trim();
27+
return childProcess.execFileSync(command, arguments_, {
28+
encoding: 'utf8',
29+
stdio: ['ignore', 'pipe', 'ignore'],
30+
}).trim();
2831
}

0 commit comments

Comments
 (0)