Update src/main/shell-session.ts

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri NevalaandSebastian Malton committed 2021-02-19 18:47:09 +02:00
1 parent f9639f0884
commit 6dcf3ec668
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ export class ShellSession extends EventEmitter {
protected async getShellEnv() {
const env = JSON.parse(JSON.stringify(await shellEnv()));
const pathStr = [this.kubectlBinDir, this.helmBinDir, process.env.PATH].join(path.delimiter);
const shell = userStore.preferences.shell && userStore.preferences.shell !== "" ? userStore.preferences.shell : process.env.SHELL;
const shell = userStore.preferences.shell || process.env.SHELL;
if(isWindows) {
env["SystemRoot"] = process.env.SystemRoot;