Fix cwd not being respected for local shells on windows (#4395)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-23 14:34:18 -05:00
1 parent 32dfc74aff
commit 8c9e3b2fdc
1 file changed
+1 -1
@@ -50,7 +50,7 @@ export class LocalShellSession extends ShellSession {
switch(path.basename(shell)) {
case "powershell.exe":
return ["-NoExit", "-command", `& {Set-Location $Env:USERPROFILE; $Env:PATH="${helmpath};${kubectlPathDir};$Env:PATH"}`];
return ["-NoExit", "-command", `& {$Env:PATH="${helmpath};${kubectlPathDir};$Env:PATH"}`];
case "bash":
return ["--init-file", path.join(await this.kubectlBinDirP, ".bash_set_path")];
case "fish":