Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 3e4613f · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:nvm.sh+1 added
91 unmodified lines
92}9394# Obtain nvm version from rc file95nvm_rc_version() {96 export NVM_RC_VERSION=''97 local NVMRC_PATH98 NVMRC_PATH="$(nvm_find_nvmrc)"99 if [ -e "$NVMRC_PATH" ]; then100 read NVM_RC_VERSION < "$NVMRC_PATH"
806 unmodified lines