#!/usr/bin/env bash
set -Eeuo pipefail

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."

files="$(find -name '*.md' -print0 | xargs -0 markdownfmt -l)"
if [ "$files" ]; then
	echo >&2 'Need markdownfmt:'
	echo >&2 "$files"
	echo >&2
	echo "$files" | xargs markdownfmt -d >&2
	exit 1
fi

#!/usr/bin/env bash
set -Eeuo pipefail

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."

files="$(
	find \( \
			-name '*.md' \
			-not -name 'README.md' \
		\) -print0 \
		| xargs -0 markdownfmt -l)"
if [ "$files" ]; then
	echo >&2 'Need markdownfmt:'
	echo >&2 "$files"
	echo >&2
	echo "$files" | xargs markdownfmt -d >&2
	exit 1
fi

Adjust Travis to ignore formatting of README.md
Adjust Travis to ignore formatting of README.md
