Fixes nvm_ls current

This commit is contained in:
Robert Sköld 2012-02-20 15:39:01 +01:00
parent 1eaf6e2db7
commit 1426dd1e63

3
nvm.sh
View File

@ -38,7 +38,8 @@ nvm_ls()
PATTERN=$1 PATTERN=$1
VERSIONS='' VERSIONS=''
if [ "$PATTERN" = 'current' ]; then if [ "$PATTERN" = 'current' ]; then
VERSION=`node -v 2>/dev/null` echo `node -v 2>/dev/null`
return
fi fi
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then if [ -f "$NVM_DIR/alias/$PATTERN" ]; then