Skip to content

Loading…

Fixes ls-remote with no parameters in linux #148

Merged
merged 1 commit into from

2 participants

@nlf
nlf commented

It turns out that ls-remote wasn't working with the linux version of grep (worked on OSX). This patch fixes that by explicitly setting a pattern if one isn't specified.

@creationix creationix merged commit 3766bff into creationix:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 8, 2012
  1. @nlf
Showing with 2 additions and 0 deletions.
  1. +2 −0 nvm.sh
View
2 nvm.sh
@@ -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]+' \
Something went wrong with that request. Please try again.