nvm exec: don't fall back to `.nvmrc` when the provided version is not installed.

Jordan Harband 2015-10-08 17:37:53 -07:00
parent 937c29c95a
commit a928a8f181
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1933,7 +1933,7 @@ nvm() {
provided_version="$1"
if [ -n "$provided_version" ]; then
VERSION="$(nvm_version "$provided_version")"
if [ "_$VERSION" = "_N/A" ]; then
if [ "_$VERSION" = "_N/A" ] && ! nvm_is_valid_version "$provided_version"; then
nvm_rc_version
provided_version="$NVM_RC_VERSION"
VERSION="$(nvm_version "$provided_version")"