From 40d3d574132d2849646c20eb9d8742b159d9bfc8 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 13 Sep 2019 18:06:03 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- scripts/lint-doc.sh | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'scripts/lint-doc.sh') diff --git a/scripts/lint-doc.sh b/scripts/lint-doc.sh index 8c9b8b9fb02..e2c22785963 100755 --- a/scripts/lint-doc.sh +++ b/scripts/lint-doc.sh @@ -35,30 +35,16 @@ fi # Do not use 'README.md', instead use 'index.md' # Number of 'README.md's as of 2018-03-26 -NUMBER_READMES_CE=46 -NUMBER_READMES_EE=46 +NUMBER_READMES=46 FIND_READMES=$(find doc/ -name "README.md" | wc -l) echo '=> Checking for new README.md files...' -if [ "${CI_PROJECT_NAME}" == 'gitlab-ce' ] +if [ ${FIND_READMES} -ne $NUMBER_READMES ] then - if [ ${FIND_READMES} -ne ${NUMBER_READMES_CE} ] - then - echo - echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2 - echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files' - echo - exit 1 - fi -elif [ "${CI_PROJECT_NAME}" == 'gitlab-ee' ] -then - if [ ${FIND_READMES} -ne $NUMBER_READMES_EE ] - then - echo - echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2 - echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files' - echo - exit 1 - fi + echo + echo ' ✖ ERROR: New README.md file(s) detected, prefer index.md over README.md.' >&2 + echo ' https://docs.gitlab.com/ee/development/documentation/styleguide.html#working-with-directories-and-files' + echo + exit 1 fi echo "✔ Linting passed" -- cgit v1.2.1