pre-push 399 B

123456789101112131415161718
  1. #!/bin/sh
  2. echo "Linting changes as part of pre-push hook"
  3. echo ""
  4. echo "ci/lint/format.sh:"
  5. ci/lint/format.sh
  6. lint_exit_status=$?
  7. if [ $lint_exit_status -ne 0 ]; then
  8. echo ""
  9. echo "Linting changes failed."
  10. echo "Please make sure 'ci/lint/format.sh'"\
  11. "runs with no errors before pushing."
  12. echo "If you want to ignore this and push anyways,"\
  13. "re-run with '--no-verify'."
  14. exit 1
  15. fi
  16. exit 0