[Refactor] fix copy-paste error from 5c68141ede

Jordan Harband 2016-09-18 19:06:18 -07:00
parent d12ccb130d
commit 160a39c844
1 changed files with 3 additions and 1 deletions

4
nvm.sh
View File

@ -2828,10 +2828,12 @@ nvm() {
done done
local NVM_OUTPUT local NVM_OUTPUT
local EXIT_CODE
NVM_OUTPUT="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" &&:)" NVM_OUTPUT="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" &&:)"
EXIT_CODE=$?
if [ -n "$NVM_OUTPUT" ]; then if [ -n "$NVM_OUTPUT" ]; then
NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "$NVM_OUTPUT" NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "$NVM_OUTPUT"
return $NVM_LS_REMOTE_EXIT_CODE || $NVM_LS_REMOTE_IOJS_EXIT_CODE return $EXIT_CODE
else else
NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "N/A" NVM_NO_COLORS="${NVM_NO_COLORS-}" nvm_print_versions "N/A"
return 3 return 3