Use `--extended-regexp` in lint-doc for compatibility with Darwin grep
This commit is contained in:
parent
18201ace36
commit
d6c2f5f569
|
|
@ -3,7 +3,7 @@
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
# Use long options (e.g. --header instead of -H) for curl examples in documentation.
|
# 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 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
echo '✖ ERROR: Short options should not be used in documentation!' >&2
|
echo '✖ ERROR: Short options should not be used in documentation!' >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue