Rename this local var in `nvm_version_dir`
parent
0a142b7e7a
commit
0bd7372c64
8
nvm.sh
8
nvm.sh
|
@ -140,11 +140,11 @@ nvm_version_greater_than_or_equal_to() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_version_dir() {
|
nvm_version_dir() {
|
||||||
local NVM_USE_NEW_DIR
|
local NVM_WHICH_DIR
|
||||||
NVM_USE_NEW_DIR="$1"
|
NVM_WHICH_DIR="$1"
|
||||||
if [ -z "$NVM_USE_NEW_DIR" ] || [ "$NVM_USE_NEW_DIR" = "new" ]; then
|
if [ -z "$NVM_WHICH_DIR" ] || [ "_$NVM_WHICH_DIR" = "_new" ]; then
|
||||||
echo "$NVM_DIR/versions"
|
echo "$NVM_DIR/versions"
|
||||||
elif [ "$NVM_USE_NEW_DIR" = "old" ]; then
|
elif [ "_$NVM_WHICH_DIR" = "_old" ]; then
|
||||||
echo "$NVM_DIR"
|
echo "$NVM_DIR"
|
||||||
else
|
else
|
||||||
echo "unknown version dir" >&2
|
echo "unknown version dir" >&2
|
||||||
|
|
Loading…
Reference in New Issue