Merge pull request #102 from chakrit/patch-1
`nvm version` and `nvm ls` not correctly reporting current version.master
commit
293061b8b7
3
nvm.sh
3
nvm.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue