committed by
GitHub
15 changed files with 89 additions and 34 deletions
@ -0,0 +1,16 @@ |
|||
#!/bin/bash |
|||
|
|||
RESULTS=$(find . -name '*.py' -exec grep -H fake_it[\ ]*=[\ ]*True {} +) |
|||
LEN=`expr length "$RESULTS"` |
|||
echo $RESULTS |
|||
# echo $LEN |
|||
if [[ $LEN -gt 0 ]]; then |
|||
echo |
|||
echo "======================================================" |
|||
echo "ERROR: Never commit code with fake seeds or passwords!" |
|||
echo "======================================================" |
|||
exit 1 |
|||
else |
|||
exit 0 |
|||
fi |
|||
|
Loading…
Reference in new issue