make ls-remote work with no parameters in linux

master
Nathan LaFreniere 2012-10-07 17:19:53 -07:00
parent e1be38f90d
commit a368227237
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -78,6 +78,8 @@ nvm_ls_remote()
if [ "${PATTERN:0:1}" != "v" ]; then
PATTERN=v$PATTERN
fi
else
PATTERN=".*"
fi
VERSIONS=`curl -s http://nodejs.org/dist/ \
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \