From 1fb9b05abfab525b8b4ae0667522c7ff1b98deca Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 10 May 2017 10:04:05 -0700 Subject: [PATCH] Adjust Travis to ignore formatting of README.md --- .travis/check-markdownfmt.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis/check-markdownfmt.sh b/.travis/check-markdownfmt.sh index ef5f6b10b..e69dad9ff 100755 --- a/.travis/check-markdownfmt.sh +++ b/.travis/check-markdownfmt.sh @@ -3,7 +3,12 @@ set -Eeuo pipefail cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.." -files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)" +files="$( + find \( \ + -name '*.md' \ + -not -name 'README.md' \ + \) -print0 \ + | xargs -0 markdownfmt -l)" if [ "$files" ]; then echo >&2 'Need markdownfmt:' echo >&2 "$files"