瀏覽代碼

Adjust Travis to ignore formatting of README.md

Tianon Gravi 8 年之前
父節點
當前提交
1fb9b05abf
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      .travis/check-markdownfmt.sh

+ 6 - 1
.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"