Use unaliased grep in flag check

This commit is contained in:
Marc Cornellà 2014-12-13 19:18:11 +01:00
parent cf586b54b8
commit 0190eb084b

View file

@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto"
VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
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
GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"