mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix precedence of union of env objects
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
parent
a793822286
commit
1e40166584
@ -27,8 +27,9 @@ export function shellSync(locale: string) {
|
||||
process.env["PATH"] = env.PATH
|
||||
}
|
||||
|
||||
// The spread operator allows joining of objects. The precidence is last to first.
|
||||
process.env = {
|
||||
...env,
|
||||
...process.env,
|
||||
...env
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user