For CI testing Windows in minikube we SSH into a Windows machine, which starts us in Command Prompt. We then run powershell to change the terminal to Powershell. However, within the Powershell terminal the SHELL environment variable is still pointing to Command Prompt (c:\windows\system32\cmd.exe). So when running the exported function shell.Detecthere it returns cmd instead of the expected powershell.
For CI testing Windows in minikube we SSH into a Windows machine, which starts us in Command Prompt. We then run
powershell
to change the terminal to Powershell. However, within the Powershell terminal theSHELL
environment variable is still pointing to Command Prompt (c:\windows\system32\cmd.exe
). So when running the exported functionshell.Detect
here it returnscmd
instead of the expectedpowershell
.