mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
13 lines
219 B
Bash
Executable File
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
|