Skip to content

Commit

Permalink
minor fix for previous path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruby0x1 committed Nov 18, 2015
1 parent 21b4971 commit f304303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(":");
}

Expand Down

0 comments on commit f304303

Please sign in to comment.