This commit is contained in:
Nathan LaFreniere 2012-10-17 07:27:14 -07:00
commit 8a50a10304

2
nvm.sh
View File

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