From a368227237b3c89d26be98e58d8a234e0d61d2b3 Mon Sep 17 00:00:00 2001 From: Nathan LaFreniere Date: Sun, 7 Oct 2012 17:19:53 -0700 Subject: [PATCH] make ls-remote work with no parameters in linux --- nvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvm.sh b/nvm.sh index 1804925..4f3499c 100755 --- a/nvm.sh +++ b/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]+' \