Permalink
Browse files

Merge pull request #148 from nathan-lafreniere/master

Fixes ls-remote with no parameters in linux
  • Loading branch information...
2 parents 304924a + a368227 commit 3766bff7345565e83803f9fd522d3de1ce2120fa @creationix committed Oct 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 nvm.sh
View
2 nvm.sh
@@ -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]+' \

0 comments on commit 3766bff

Please sign in to comment.