fix: git template

This commit is contained in:
2020-07-10 18:55:14 +08:00
parent 4cddccd416
commit 1a47cfb2e0
3 changed files with 214 additions and 0 deletions
@@ -0,0 +1,9 @@
#!/bin/bash
# 检查是否有 go mod 替换了本地文件
res=$(grep '/Users/' ./go.mod)
if [ "x$res" != "x" ]; then
echo "use local file replace"
echo $res
exit 1
fi
exit 0