`nvm version` and `nvm ls` not correctly reporting current version on both zsh and bash.

master
Chakrit Wichian 2012-02-19 18:12:14 +07:00
parent 1eaf6e2db7
commit a49f77135a
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

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