Skip to content
Myr

fixed nvm_version result when multiple versions match the given pattern

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

authored by messju mohr · committed by messju mohr · parent 3a21485 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:nvm.sh+1 added-1 removed
49 unmodified lines
50 if [ -z "$PATTERN" ]; then51 PATTERN='current'52 fi5354 VERSION=`nvm_ls $PATTERN`54 VERSION=`nvm_ls $PATTERN | tail -n1`55 echo "$VERSION"5657 if [ "$VERSION" = 'N/A' ]; then58 return
502 unmodified lines