mdformat.sh 173 B

123456789101112
  1. #!/bin/sh --
  2. set -ue
  3. self="$(readlink -m "${0}")"
  4. . "${self%/*}/functions.sh.lib"
  5. for f in $(git_modified); do
  6. case "${f}" in
  7. *.md) mdformat --check "${f}";;
  8. esac
  9. done