Skip to content
Myr

Moving the N/A check earlier in `nvm install`

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 6cac732 · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:nvm.sh+5 added-5 removed
961 unmodified lines
962 VERSION="$(nvm_remote_version "$provided_version")"963 ;;964 esac965966 if [ "_$VERSION" = "_N/A" ]; then967 echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&2968 return 3969 fi970971 ADDITIONAL_PARAMETERS=''972 local PROVIDED_REINSTALL_PACKAGES_FROM973 local REINSTALL_PACKAGES_FROM974
33 unmodified lines
1008 fi1009 return $?1010 fi10111007 if [ "_$VERSION" = "_N/A" ]; then1008 echo "Version '$provided_version' not found - try \`nvm ls-remote\` to browse available versions." >&21009 return 31010 fi10111012 if [ "_$NVM_OS" = "_freebsd" ]; then1013 # node.js and io.js do not have a FreeBSD binary1014 nobinary=11015 elif [ "_$NVM_OS" = "_sunos" ] && [ "$NVM_IOJS" = true ]; then
497 unmodified lines