mirror of
https://github.com/wahyd4/crawlab.git
synced 2026-08-08 21:00:55 +10:00
git hooks test
This commit is contained in:
Executable
+11
@@ -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