Permalink
Browse files

Merge pull request #175 from Marsup/fix-172

Fix #172 on ZSH
  • Loading branch information...
2 parents eaf8a50 + 2662840 commit 9c3af112cab686211bc477236cba0f10a55d20fe @creationix committed Dec 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 nvm.sh
View
@@ -74,14 +74,15 @@ nvm_ls()
nvm_ls_remote()
{
local PATTERN=$1
+ local VERSIONS
if [ "$PATTERN" ]; then
if echo "${PATTERN}" | grep -v '^v' ; then
PATTERN=v$PATTERN
fi
else
PATTERN=".*"
fi
- local VERSIONS=`curl -s http://nodejs.org/dist/ \
+ VERSIONS=`curl -s http://nodejs.org/dist/ \
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
| grep -w "${PATTERN}" \
| sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n`

0 comments on commit 9c3af11

Please sign in to comment.