Files
crawlab/scripts/validate-backend.sh
Marvin Zhang 27e03778e9 git hooks test
2021-12-30 13:51:53 +08:00

12 lines
146 B
Bash
Executable File

#!/bin/sh
IFS=$'\n'
pattern=^replace
content=$(cat ./backend/go.mod)
for line in $content
do
if [[ $line =~ $pattern ]]; then
exit 1
fi
done