Browse Source

fixed nvm_version result when multiple versions match the given pattern

install_use_nvmrc
messju mohr 11 years ago
parent
commit
f82f38be90
  1. 2
      nvm.sh

2
nvm.sh

@ -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

Loading…
Cancel
Save