Skip to content

Commit

Permalink
Merge pull request #35 from spowelljr/addExe
Browse files Browse the repository at this point in the history
Add missing .exe to shell check
  • Loading branch information
afbjorklund authored Jul 19, 2021
2 parents 753b247 + 0c7b6ea commit 6eca267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmachine/shell/shell_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Detect() (string, error) {

// if you spawn a Powershell instance from CMD, sometimes the SHELL environment variable still points to CMD in the Powershell instance
// so if SHELL is pointing to CMD, let's do extra work to get the correct shell
if shell == "" || filepath.Base(shell) == "cmd" {
if shell == "" || filepath.Base(shell) == "cmd.exe" {
shell, shellppid, err := getNameAndItsPpid(os.Getppid())
if err != nil {
return "cmd", err // defaulting to cmd
Expand Down

0 comments on commit 6eca267

Please sign in to comment.