Fix output of ".nvm" as an available version

This commit is contained in:
Marcin Jekot 2014-05-19 17:05:26 +02:00
parent 2441b00262
commit f691cea416

2
nvm.sh
View File

@ -117,7 +117,7 @@ nvm_binary_available() {
}
nvm_ls() {
local PATTERN=$1
local PATTERN=`expr "$1" : "v"`
local VERSIONS=''
if [ "$PATTERN" = 'current' ]; then
echo `node -v 2>/dev/null`