From c3ee0acdd8bcabe20c8d5077ceab94dd850511d2 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Fri, 15 Apr 2016 10:38:32 -0500 Subject: [PATCH] Allow skipping the md docs check Not every project that uses dib elements will necessarily want this check enabled. Change-Id: Id4b167ed220dd55852b6587b884fabe7bc8554eb --- bin/dib-lint | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/dib-lint b/bin/dib-lint index eb925d4fa..248778499 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -163,9 +163,11 @@ for i in $(find elements -type f -and -name '*.rst' -or -type f -executable); do fi done -md_docs=$(find elements -name '*.md') -if [ -n "$md_docs" ]; then - error ".md docs found: $md_docs" +if ! excluded mddocs; then + md_docs=$(find elements -name '*.md') + if [ -n "$md_docs" ]; then + error ".md docs found: $md_docs" + fi fi for i in $(find elements -name '*.yaml' \