Permalink
Browse files

Merge pull request #102 from chakrit/patch-1

`nvm version` and `nvm ls` not correctly reporting current version.
  • Loading branch information...
2 parents 1eaf6e2 + a49f771 commit 293061b8b757601abd3116d00491e6f2da8ee454 @creationix committed Feb 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 nvm.sh
View
3 nvm.sh
@@ -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

0 comments on commit 293061b

Please sign in to comment.