Merge pull request #531 from rcknight/patch-1

Fix major version check
This commit is contained in:
Corey Butler
2021-09-11 00:29:07 -05:00
committed by GitHub

View File

@@ -206,7 +206,7 @@ func install(version string, cpuarch string) {
// if the user specifies only the major version number then install the latest
// version of the major version number
if len(version) == 1 {
if !strings.Contains(version, ".") {
version = findLatestSubVersion(version)
} else {
version = cleanVersion(version)