Permalink
Browse files

Fix #172 on ZSH

  • Loading branch information...
1 parent 59c8eda commit 266284006408094065e8f5fceb4ee7bc602e97ff @Marsup Marsup committed Nov 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 nvm.sh
View
3 nvm.sh
@@ -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 2662840

Please sign in to comment.