mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-27 12:01:34 +00:00
Fix wrong full version matching
This commit is contained in:
2
nvm.sh
Normal file → Executable file
2
nvm.sh
Normal file → Executable file
@@ -38,7 +38,7 @@ nvm_version()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# If it looks like an explicit version, don't do anything funny
|
# If it looks like an explicit version, don't do anything funny
|
||||||
if [[ "$PATTERN" == v*.*.* ]]; then
|
if [[ "$PATTERN" == v?*.?*.?* ]]; then
|
||||||
VERSION="$PATTERN"
|
VERSION="$PATTERN"
|
||||||
fi
|
fi
|
||||||
# The default version is the current one
|
# The default version is the current one
|
||||||
|
Reference in New Issue
Block a user