From d6d664312c680cf492f1678a75233863e58786ed Mon Sep 17 00:00:00 2001 From: Christopher Schenk Date: Fri, 1 Apr 2022 16:03:19 +0200 Subject: [PATCH] Ignore stderr output when running commands Fixes #1006 --- services/clsi/app/js/LocalCommandRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/clsi/app/js/LocalCommandRunner.js b/services/clsi/app/js/LocalCommandRunner.js index c1ae800847..b1240d29ab 100644 --- a/services/clsi/app/js/LocalCommandRunner.js +++ b/services/clsi/app/js/LocalCommandRunner.js @@ -50,7 +50,7 @@ module.exports = CommandRunner = { } // run command as detached process so it has its own process group (which can be killed if needed) - const proc = spawn(command[0], command.slice(1), { cwd: directory, env }) + const proc = spawn(command[0], command.slice(1), { cwd: directory, env, stdio: ['pipe', 'pipe', 'ignore'] }) let stdout = '' proc.stdout.setEncoding('utf8').on('data', data => (stdout += data))