mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
🎨 envShouldBePatched > shouldGetEnvFromShell
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user