Skip to content

Commit

Permalink
Fix hub help <cmd> on Windows
Browse files Browse the repository at this point in the history
Fixes #2384
  • Loading branch information
mislav committed Dec 10, 2019
1 parent abe0678 commit 7b02a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func searchBrowserLauncher(goos string) (browser string) {
}

func CommandPath(cmd string) (string, error) {
if runtime.GOOS == "windows" {
if runtime.GOOS == "windows" && !strings.HasSuffix(cmd, ".exe") {
cmd = cmd + ".exe"
}

Expand Down

0 comments on commit 7b02a66

Please sign in to comment.