Skip to content

Commit

Permalink
FLUID-6086: Fixing stdio option to allow stdout
Browse files Browse the repository at this point in the history
The verbose setting now only affects stderr, as the stdout needs to be returned by the function
  • Loading branch information
jobara committed Nov 24, 2016
1 parent a598661 commit ce47491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ var execSync = require("child_process").execSync;
*/
var getFromExec = function (command, options) {
var result = options.defaultValue;
var stdio = options.verbose ? "pipe" : "ignore";
var stderr = options.verbose ? "pipe" : "ignore";

try {
result = execSync(command, {stdio: stdio });
result = execSync(command, {stdio: ["pipe", "pipe", stderr]});
} catch (e) {
if (options.verbose) {
console.log("Error executing command: " + command);
Expand Down

0 comments on commit ce47491

Please sign in to comment.