Skip to content

Commit

Permalink
Escape grep
Browse files Browse the repository at this point in the history
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
nibrahim committed Jul 12, 2011
1 parent 4dbc9be commit abc86c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rvm
Expand Up @@ -72,15 +72,15 @@ fi

if [[ -n "${BASH_VERSION:-}" ]]
then
if type rvm 2>&1 | grep 'function' >/dev/null
if type rvm 2>&1 | \grep 'function' >/dev/null
then
rvm_loaded_flag=1
else
rvm_loaded_flag=0
fi
elif [[ -n "${ZSH_VERSION:-}" ]]
then
if type rvm 2>&1 | grep 'function' >/dev/null
if type rvm 2>&1 | \grep 'function' >/dev/null
then
rvm_loaded_flag=1
else
Expand Down

0 comments on commit abc86c5

Please sign in to comment.