From d5fe657382e96e40ec4dd5966eaec738134a3089 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 28 Sep 2014 16:40:53 -0700 Subject: [PATCH] Ensure `nvm_rc_version` always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs. --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index e1ef5df..d6380cd 100644 --- a/nvm.sh +++ b/nvm.sh @@ -93,6 +93,7 @@ nvm_find_nvmrc() { # Obtain nvm version from rc file nvm_rc_version() { + export NVM_RC_VERSION='' local NVMRC_PATH NVMRC_PATH="$(nvm_find_nvmrc)" if [ -e "$NVMRC_PATH" ]; then