1
0
Fork 0
mirror of https://github.com/nickpoida/og-aws.git synced 2025-02-13 18:32:01 +00:00
og-aws/admin/reformat-gentle.sh

17 lines
444 B
Bash
Raw Normal View History

#!/bin/bash
# Gently fix common Markdown formatting errors. Should be minimally invasive.
set -e -u -o pipefail
hash repren >/dev/null 2>&1 || {
echo >&2 "repren missing: Install https://github.com/jlevy/repren and re-run"
exit 1
}
cd $(dirname $0)/..
# Extra spaces following a bullet replaced by tab per mkdownfmt convention.
# Leave other stuff alone.
repren --from '^(\s*)([-*])(\s* +\s*)' --to '\1\2\t' README.md CONTRIBUTING.md