Merge pull request #148 from nathan-lafreniere/master

Fixes ls-remote with no parameters in linux
master
Tim Caswell 2012-10-17 07:27:28 -07:00
commit 3766bff734
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -91,6 +91,8 @@ nvm_ls_remote()
if echo "${PATTERN}" | grep -v '^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]+' \