Commit da5c3725 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rs-extended-regexp' into 'master'

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

Now it should work on all platforms.

See merge request !7943
parents e27fa5bc d6c2f5f5
...@@ -3,7 +3,7 @@ ...@@ -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
......
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