Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix nvm_ls_remote #166

Closed
wants to merge 1 commit into from

1 participant

@lowol

Fix if you have set the color alias to grep

@lowol lowol closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2012
  1. fix nvm_ls_remote

    lowol authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  nvm.sh
View
2  nvm.sh
@@ -97,7 +97,7 @@ nvm_ls_remote()
fi
VERSIONS=`curl -s http://nodejs.org/dist/ \
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
- | grep -w "${PATTERN}" \
+ | grep --color=never -w "${PATTERN}" \
| sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n`
if [ ! "$VERSIONS" ]; then
echo "N/A"
Something went wrong with that request. Please try again.