Update scripts/lint-doc.sh

Originally submitted at
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3056.

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
John Eismeier 2017-10-03 15:15:40 +00:00 committed by Rémy Coutable
parent 735da8dde7
commit 2c06a13854
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
1 changed files with 1 additions and 1 deletions

View File

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