lint: when the linter fails, provide instructions for running it locally
#!/bin/bash -ex
+# trap errors, including the exit code from the command failed
+trap 'handle_exit $?' EXIT
+
+function handle_exit() {
+ # If the exit code we were given indicates an error, suggest that
+ # the author run the linter locally.
+ if [ "$1" != "0" ]; then
+ cat - <<EOF
+
+To run the linter on a Linux system with podman, run "make lint" after
+committing your changes locally.
+
+EOF
+ fi
+}
+
markdownlint-cli2 '**/*.md'
$(dirname $0)/template-lint.sh
