From 2971d44c996bce2742334783c08fa1750f55e880 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Sun, 19 Apr 2020 10:22:30 +0300 Subject: [PATCH] fix Signed-off-by: Jari Kolehmainen --- src/main/node-shell-session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/node-shell-session.ts b/src/main/node-shell-session.ts index 83bb222851..2325e3f77c 100644 --- a/src/main/node-shell-session.ts +++ b/src/main/node-shell-session.ts @@ -30,7 +30,7 @@ export class NodeShellSession extends ShellSession { } args = ["exec", "-i", "-t", "-n", "kube-system", this.podId, "--", "sh", "-c", "((clear && bash) || (clear && ash) || (clear && sh))"] - const shellEnv = this.getShellEnv() + const shellEnv = await this.getCachedShellEnv() this.shellProcess = pty.spawn(shell, args, { cols: 80, cwd: this.cwd() || shellEnv["HOME"],