You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
16 lines
393 B
#!/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
|
|
|
|
|