mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-14 07:03:17 +08:00
Include support for auto-expanding versions
This commit is contained in:
@@ -219,7 +219,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)
|
||||
|
||||
Reference in New Issue
Block a user