mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix broken command parameter
This commit is contained in:
@@ -231,7 +231,8 @@ class AtomEnvironment extends Model
|
||||
checkPortableHomeWritable()
|
||||
|
||||
# Patch the `process.env` on startup to fix the problem first documented
|
||||
# in #4126
|
||||
# in #4126. Retain the original in case someone needs it.
|
||||
process._originalEnv = process.env
|
||||
process.env = @project.getEnv()
|
||||
|
||||
attachSaveStateListeners: ->
|
||||
|
||||
@@ -12,7 +12,7 @@ getRawShellEnv = ->
|
||||
# work with csh or tcsh. Given that bash and zsh should cover the
|
||||
# vast majority of users and it gracefully falls back to prior behavior,
|
||||
# this should be safe.
|
||||
results = child_process.spawnSync shell, ["-ilc"], input: "env", encoding: "utf8"
|
||||
results = child_process.spawnSync(shell, ["-ilc", "env"], encoding: "utf8")
|
||||
return if results.error?
|
||||
return unless results.stdout and results.stdout.length > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user