Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Escape grep

Some people have ack-grep aliased to grep which has different exit
codes. This will mess up the detection and not produce the desired
results.
  • Loading branch information...
commit abc86c5c64b19f02a002806ca1f3badd548eb417 1 parent 4dbc9be
Noufal Ibrahim nibrahim authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 scripts/rvm
4 scripts/rvm
@@ -72,7 +72,7 @@ fi
72 72
73 73 if [[ -n "${BASH_VERSION:-}" ]]
74 74 then
75   - if type rvm 2>&1 | grep 'function' >/dev/null
  75 + if type rvm 2>&1 | \grep 'function' >/dev/null
76 76 then
77 77 rvm_loaded_flag=1
78 78 else
@@ -80,7 +80,7 @@ then
80 80 fi
81 81 elif [[ -n "${ZSH_VERSION:-}" ]]
82 82 then
83   - if type rvm 2>&1 | grep 'function' >/dev/null
  83 + if type rvm 2>&1 | \grep 'function' >/dev/null
84 84 then
85 85 rvm_loaded_flag=1
86 86 else

0 comments on commit abc86c5

Please sign in to comment.
Something went wrong with that request. Please try again.