From 6dcf3ec6688d6792eea1a86fede01605ae3bf3d4 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Fri, 19 Feb 2021 18:46:27 +0200 Subject: [PATCH] Update src/main/shell-session.ts Co-authored-by: Sebastian Malton Signed-off-by: Lauri Nevala --- src/main/shell-session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/shell-session.ts b/src/main/shell-session.ts index f9e44dad0a..de6c552aeb 100644 --- a/src/main/shell-session.ts +++ b/src/main/shell-session.ts @@ -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;