fixed nvm_version result when multiple versions match the given pattern

master
messju mohr 2014-02-25 11:58:20 +01:00
parent 3a21485050
commit f82f38be90
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -51,7 +51,7 @@ nvm_version() {
PATTERN='current' PATTERN='current'
fi fi
VERSION=`nvm_ls $PATTERN` VERSION=`nvm_ls $PATTERN | tail -n1`
echo "$VERSION" echo "$VERSION"
if [ "$VERSION" = 'N/A' ]; then if [ "$VERSION" = 'N/A' ]; then