diff --git a/lib/utils/exec.js b/lib/utils/exec.js index a2d12e5..28f0928 100644 --- a/lib/utils/exec.js +++ b/lib/utils/exec.js @@ -9,12 +9,13 @@ var spawn = require('child_process').spawn //that will pass incremental changes to you //but this doesn't change the above behavior. +var path_set = false; module.exports = function(cmd, args, ondataout, ondataerr) { return new Promise(function(resolve, reject) { //OSX El Capitan launchctl PATH related solution, for now - if(process.platform == 'darwin') { + if(process.platform == 'darwin' && !path_set) { process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":"); }