Fixes ls-remote with no parameters in linux #148

Merged
merged 1 commit into from Oct 17, 2012
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]+' \