mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 22:51:51 +00:00
version param is shifted off in main param loop, no longer needed here.
This commit is contained in:
parent
e0c952300c
commit
3ba1d1f105
8
nvm.sh
8
nvm.sh
@ -2552,14 +2552,8 @@ nvm() {
|
|||||||
if [ -z "$provided_version" ]; then
|
if [ -z "$provided_version" ]; then
|
||||||
if [ "_${LTS-}" = '_*' ]; then
|
if [ "_${LTS-}" = '_*' ]; then
|
||||||
nvm_echo 'Installing latest LTS version.'
|
nvm_echo 'Installing latest LTS version.'
|
||||||
if [ $# -gt 0 ]; then
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
elif [ "_${LTS-}" != '_' ]; then
|
elif [ "_${LTS-}" != '_' ]; then
|
||||||
nvm_echo "Installing with latest version of LTS line: $LTS"
|
nvm_echo "Installing with latest version of LTS line: $LTS"
|
||||||
if [ $# -gt 0 ]; then
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
nvm_rc_version
|
nvm_rc_version
|
||||||
if [ $version_not_provided -eq 1 ] && [ -z "$NVM_RC_VERSION" ]; then
|
if [ $version_not_provided -eq 1 ] && [ -z "$NVM_RC_VERSION" ]; then
|
||||||
@ -2570,8 +2564,6 @@ nvm() {
|
|||||||
provided_version="$NVM_RC_VERSION"
|
provided_version="$NVM_RC_VERSION"
|
||||||
unset NVM_RC_VERSION
|
unset NVM_RC_VERSION
|
||||||
fi
|
fi
|
||||||
elif [ $# -gt 0 ]; then
|
|
||||||
shift
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${provided_version}" in
|
case "${provided_version}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user