@samitouri / QOS-React / commits / 00c3ee40c2

Do not forward stderr

Christopher Chedeau committed Nov 26, 2016 at 16:51 UTC 00c3ee40c2b6124a5ee336fe6af88764d3b1d5fd
1 file changed +7 -1
scripts/facts-tracker/index.js
+7 -1
@@ -22,7 +22,13 @@ function escape(value) {
22 var cwd = null;
23 function exec(command) {
24 console.error('>', command.replace(process.env.GITHUB_TOKEN, '************'));
25 - return execSync(command, cwd ? {cwd: cwd} : undefined).toString();
25 + var options = {
26 + stdio: [null, null, null],
27 + };
28 + if (cwd) {
29 + options.cwd = cwd;
30 + }
31 + return execSync(command, options).toString();
32 }
33
34 var isInsideOfTravis = !!process.env.TRAVIS_REPO_SLUG;