Don't rely on man-pages for grep feature check

This commit is contained in:
Dan Porter 2014-04-15 11:44:12 +01:00
commit 5733330834

View file

@ -5,7 +5,7 @@
# avoid VCS folders if grep supports it
GREP_OPTIONS=
if [[ "$(man grep | grep -q exclude-dir)" != "1" ]]; then
if [[ "$(grep --help | grep -q exclude-dir)" != "1" ]]; then
for PATTERN in .cvs .git .hg .svn; do
GREP_OPTIONS+="--exclude-dir=$PATTERN "
done