diff --git a/nvm.sh b/nvm.sh old mode 100644 new mode 100755 index 9a6be28..3da58a2 --- a/nvm.sh +++ b/nvm.sh @@ -38,7 +38,7 @@ nvm_version() return fi # If it looks like an explicit version, don't do anything funny - if [[ "$PATTERN" == v*.*.* ]]; then + if [[ "$PATTERN" == v?*.?*.?* ]]; then VERSION="$PATTERN" fi # The default version is the current one