mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-01-16 20:27:18 +08:00
Ensure nvm_rc_version always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs.
This commit is contained in:
1
nvm.sh
1
nvm.sh
@@ -93,6 +93,7 @@ nvm_find_nvmrc() {
|
|||||||
|
|
||||||
# Obtain nvm version from rc file
|
# Obtain nvm version from rc file
|
||||||
nvm_rc_version() {
|
nvm_rc_version() {
|
||||||
|
export NVM_RC_VERSION=''
|
||||||
local NVMRC_PATH
|
local NVMRC_PATH
|
||||||
NVMRC_PATH="$(nvm_find_nvmrc)"
|
NVMRC_PATH="$(nvm_find_nvmrc)"
|
||||||
if [ -e "$NVMRC_PATH" ]; then
|
if [ -e "$NVMRC_PATH" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user