From 3ba1d1f105011cb224655fae36eada7006c01b69 Mon Sep 17 00:00:00 2001 From: "Bickel, Korbin" Date: Thu, 13 Dec 2018 17:12:08 -0500 Subject: [PATCH] version param is shifted off in main param loop, no longer needed here. --- nvm.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nvm.sh b/nvm.sh index 486a4fc..edcd19d 100644 --- a/nvm.sh +++ b/nvm.sh @@ -2552,14 +2552,8 @@ nvm() { if [ -z "$provided_version" ]; then if [ "_${LTS-}" = '_*' ]; then nvm_echo 'Installing latest LTS version.' - if [ $# -gt 0 ]; then - shift - fi elif [ "_${LTS-}" != '_' ]; then nvm_echo "Installing with latest version of LTS line: $LTS" - if [ $# -gt 0 ]; then - shift - fi else nvm_rc_version if [ $version_not_provided -eq 1 ] && [ -z "$NVM_RC_VERSION" ]; then @@ -2570,8 +2564,6 @@ nvm() { provided_version="$NVM_RC_VERSION" unset NVM_RC_VERSION fi - elif [ $# -gt 0 ]; then - shift fi case "${provided_version}" in