Permalink
Browse files

make ls-remote work with no parameters in linux

  • Loading branch information...
1 parent e1be38f commit a368227237b3c89d26be98e58d8a234e0d61d2b3 @nlf committed Oct 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 nvm.sh
View
@@ -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]+' \

0 comments on commit a368227

Please sign in to comment.