fixed nvm_version result when multiple versions match the given pattern

This commit is contained in:
messju mohr
2014-03-15 20:42:38 +01:00
parent 3a21485050
commit f82f38be90
+1 -1
View File
@@ -51,7 +51,7 @@ nvm_version() {
PATTERN='current'
fi
VERSION=`nvm_ls $PATTERN`
VERSION=`nvm_ls $PATTERN | tail -n1`
echo "$VERSION"
if [ "$VERSION" = 'N/A' ]; then