mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge pull request #70 from mdiniz/master
Fix wrong full version matching
This commit is contained in:
commit
ff3e7d4025
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
|
||||||
|
Loading…
Reference in New Issue
Block a user