check-changes.sh 238 B

1234567891011
  1. #!/bin/bash
  2. dirty=$(git ls-files --modified)
  3. set +x
  4. if [[ $dirty ]]; then
  5. echo "================================="
  6. echo "Files were not formatted properly"
  7. echo "$dirty"
  8. echo "================================="
  9. exit 1
  10. fi