Skip to content
Myr

Make `nvm ls-remote` return nvm_ls_remote's exit code.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 4a8a5a1 · Browse files · 1 file+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−3 removed

  • other:+6 added−3 removed

1 file+6 added−3 removed

modified:nvm.sh+6 added-3 removed
294 unmodified lines
295}296297nvm_ls_remote() {298 local PATTERN299 PATTERN=$1299 PATTERN="$1"300 local VERSIONS301 local GREP_OPTIONS302 GREP_OPTIONS=''303 if [ -n "$PATTERN" ]; then
493 unmodified lines
797 fi798 return $NVM_LS_EXIT_CODE799 ;;800 "ls-remote" | "list-remote" )801 nvm_print_versions "`nvm_ls_remote $2`"802 return801 local NVM_LS_EXIT_CODE802 NVM_LS_OUTPUT=$(nvm_ls_remote "$2")803 NVM_LS_EXIT_CODE=$?804 nvm_print_versions "$NVM_LS_OUTPUT"805 return $NVM_LS_EXIT_CODE806 ;;807 "current" )808 nvm_version current809 ;;
96 unmodified lines