Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
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