From a928a8f1810bb3d41e0e2e44b9900def363fe628 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 8 Oct 2015 17:37:53 -0700 Subject: [PATCH] nvm exec: don't fall back to `.nvmrc` when the provided version is not installed. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 6bb4ecc..10b62b6 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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")"