1
0
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:
Sebastian Malton 2020-06-22 11:23:37 -04:00
parent a793822286
commit 1e40166584

View File

@ -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
};
}