[Fix] installing with an LTS name should lowercase the name before ensuring a default
Fixes #1781.
parent
663bddee9b
commit
74ff70aab3
1
nvm.sh
1
nvm.sh
|
@ -2635,6 +2635,7 @@ nvm() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -n "${LTS-}" ]; then
|
if [ -n "${LTS-}" ]; then
|
||||||
|
LTS="$(echo "${LTS}" | tr '[:upper:]' '[:lower:]')"
|
||||||
nvm_ensure_default_set "lts/${LTS}"
|
nvm_ensure_default_set "lts/${LTS}"
|
||||||
else
|
else
|
||||||
nvm_ensure_default_set "$provided_version"
|
nvm_ensure_default_set "$provided_version"
|
||||||
|
|
Loading…
Reference in New Issue