Files
crawlab/scripts/validate-backend.sh
Marvin Zhang 34a63957b4 updated go.mod
2021-12-31 00:29:14 +08:00

13 lines
219 B
Bash
Executable File

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