Commit 0190eb08 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Use unaliased grep in flag check

parent cf586b54
...@@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto" ...@@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto"
VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}" VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
grep-flag-available() { grep-flag-available() {
echo | grep $1 "" >/dev/null 2>&1 echo | command grep $1 "" >/dev/null 2>&1
} }
if grep-flag-available --exclude-dir=.cvs; then if grep-flag-available --exclude-dir=.cvs; then
GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS" GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment