Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mapping for pwsh to powershell #37

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

spowelljr
Copy link

Fixes downstream: kubernetes/minikube#12860

Using the latest version of PowerShell from https://github.com/PowerShell/PowerShell resulted in me getting the error There are no more files. when running shell.Detect().

The error is coming from https://github.com/machine-drivers/machine/blob/master/libmachine/shell/shell_windows.go#L34 after being called from https://github.com/machine-drivers/machine/blob/master/libmachine/shell/shell_windows.go#L67.

The reason it's even hitting those parts of the code is because the .exe file of the new PowerShell is pwsh.exe while we're only checking for powershell.

@afbjorklund afbjorklund merged commit 8b6fbe8 into machine-drivers:master Nov 5, 2021
@spowelljr spowelljr deleted the addPowershellCheck branch November 5, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants