🎨 envShouldBePatched > shouldGetEnvFromShell

This commit is contained in:
Joe Fitzgerald
2016-08-11 17:07:21 -06:00
parent 9ec63a8ffc
commit 485cb71be7
2 changed files with 21 additions and 21 deletions

View File

@@ -40,7 +40,7 @@ function updateProcessEnv (launchEnv) {
}
}
function envShouldBePatched (shell) {
function shouldGetEnvFromShell (shell) {
if (!shell || shell.trim() === '') {
return false
}
@@ -55,7 +55,7 @@ function envShouldBePatched (shell) {
function getEnvFromShell () {
let shell = process.env.SHELL
if (!envShouldBePatched(shell)) {
if (!shouldGetEnvFromShell(shell)) {
return
}
@@ -74,4 +74,4 @@ function getEnvFromShell () {
}
}
export default { updateProcessEnv, envShouldBePatched }
export default { updateProcessEnv, shouldGetEnvFromShell }