Add --interactive option to get the user's full PATH with all the trimmings

This commit is contained in:
Lee Dohm
2016-03-07 14:27:19 -08:00
committed by Joe Fitzgerald
parent 7f6fd92c7a
commit 9916c78ce2

View File

@@ -314,7 +314,7 @@ class Project extends Model
getShellEnv: ->
shell = process.env.SHELL ? "/bin/bash"
results = child_process.spawnSync shell, ["--login"], input: "env", encoding: "utf8"
results = child_process.spawnSync shell, ["--login", "--interactive"], input: "env", encoding: "utf8"
return if results.error?
return unless results.stdout and results.stdout.length > 0