static_code_analysis.sh: Find CHANGEMEs in APKBUILDs (#1161)

This commit is contained in:
Oliver Smith 2018-01-24 21:31:07 +00:00 committed by GitHub
parent 67eac031b1
commit 34d46b2fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -18,9 +18,16 @@
set -e
DIR="$(cd "$(dirname "$0")" && pwd -P)"
cd "$DIR/.."
# Find CHANGEMEs in APKBUILDs
if grep -qr '(CHANGEME!)' aports/device; then
echo "ERROR: Please replace '(CHANGEME!)' in the following files:"
grep --color=always -r '(CHANGEME!)' aports/device
exit 1
fi
# Shell: shellcheck
cd "$DIR"/..
sh_files="
./test/static_code_analysis.sh
./test/testcases_fast.sh