#!/bin/sh # 注意 git hook 默认运行位置在 Config 文件夹下 ./auto_validation.sh if [ $? -ne 0 ]; then echo "当前配置有错误, 请修复错误再进行推送!" exit 1 fi # accept exit 0