mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
git hooks test
This commit is contained in:
11
scripts/validate-backend.sh
Executable file
11
scripts/validate-backend.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
IFS=$'\n'
|
||||
pattern=^replace
|
||||
content=$(cat ./backend/go.mod)
|
||||
for line in $content
|
||||
do
|
||||
if [[ $line =~ $pattern ]]; then
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user