Skip to content
Myr

change to use default behavior for which

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

authored by Daniel Bretoi · committed by Daniel Bretoi · parent c9a53fe · Browse files · 1 file+8 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+8 added−5 removed

  • other:+8 added−5 removed

1 file+8 added−5 removed

modified:nvm.sh+8 added-5 removed
949 unmodified lines
950 "current" )951 nvm_version current952 ;;953 "which" )954 INPUT=$2955956 if [ "_$2" != '_system' ]; then957 VERSION="$(nvm_version "$INPUT")"954 if [ $# -eq 1 ]; then955 nvm_rc_version956 if [ -n "$NVM_RC_VERSION" ]; then957 VERSION=`nvm_version $NVM_RC_VERSION`958 fi959 elif [ "_$2" != '_system' ]; then960 VERSION="$(nvm_version "$2")"961 else959 VERSION="$INPUT"962 VERSION="$2"963 fi964 if [ -z "$VERSION" ]; then965 nvm help966 return 127
132 unmodified lines