[Fix] installing with an LTS name should lowercase the name before ensuring a default

Fixes #1781.
Jordan Harband 2018-04-09 23:23:27 -07:00
parent 663bddee9b
commit 74ff70aab3
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

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