Skip to content

Commit

Permalink
make ls-remote work with no parameters in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf committed Oct 8, 2012
1 parent e1be38f commit a368227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvm.sh
Expand Up @@ -78,6 +78,8 @@ nvm_ls_remote()
if [ "${PATTERN:0:1}" != "v" ]; then if [ "${PATTERN:0:1}" != "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]+' \
Expand Down

0 comments on commit a368227

Please sign in to comment.