Saltstack Official FirewallD Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
518B

  1. #!/usr/bin/env sh
  2. set -o nounset # Treat unset variables as an error and immediately exit
  3. set -o errexit # If a command fails exit the whole script
  4. if [ "${DEBUG:-false}" = "true" ]; then
  5. set -x # Run the entire script in debug mode
  6. fi
  7. if ! command -v pre-commit >/dev/null 2>&1; then
  8. echo "pre-commit not found: please install or check your PATH" >&2
  9. echo "See https://pre-commit.com/#installation" >&2
  10. exit 1
  11. fi
  12. pre-commit install --install-hooks
  13. pre-commit install --hook-type commit-msg --install-hooks