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.
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2021 Foundation Devices, Inc. <hello@foundationdevices.com>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
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
|
|
|
|
|