Use `--extended-regexp` in lint-doc for compatibility with Darwin grep

This commit is contained in:
Robert Speicher 2016-12-06 15:46:48 +11:00
parent 18201ace36
commit d6c2f5f569
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
cd "$(dirname "$0")/.."
# Use long options (e.g. --header instead of -H) for curl examples in documentation.
grep --perl-regexp --recursive --color=auto 'curl (.+ )?-[^- ].*' doc/
grep --extended-regexp --recursive --color=auto 'curl (.+ )?-[^- ].*' doc/
if [ $? == 0 ]
then
echo '✖ ERROR: Short options should not be used in documentation!' >&2