1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2025-10-12 12:06:20 +08:00

Ensure nvm_rc_version always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs.

This commit is contained in:
Jordan Harband 2014-09-28 16:40:53 -07:00
parent 3e4613fd66
commit d5fe657382

1
nvm.sh
View File

@ -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