Fix wrong full version matching

master
Marcelo Diniz 2011-10-02 00:59:20 +02:00
parent ac9a52886d
commit f939adbedb
1 changed files with 1 additions and 1 deletions

2
nvm.sh 100644 → 100755
View 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