From bc399297dc6d452c32769f51818ef5bfb188d8c4 Mon Sep 17 00:00:00 2001 From: Daniele Debernardi Date: Sat, 14 Sep 2019 01:43:05 +0200 Subject: [PATCH] CI: check for CHANGEME in all dirs (!628) With pmbootstrap!1811, generated aports in temp/ can also have a "(CHANGEME!)" string. Let's check in all dirs, not just in the device dir. --- .gitlab-ci/static_code_analysis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/static_code_analysis.sh b/.gitlab-ci/static_code_analysis.sh index e8076bffd..dac91f10c 100755 --- a/.gitlab-ci/static_code_analysis.sh +++ b/.gitlab-ci/static_code_analysis.sh @@ -7,9 +7,9 @@ DIR="$(cd "$(dirname "$0")" && pwd -P)" cd "$DIR/.." # Find CHANGEMEs in APKBUILDs -if grep -qr '(CHANGEME!)' device; then +if grep -qr '(CHANGEME!)' *; then echo "ERROR: Please replace '(CHANGEME!)' in the following files:" - grep --color=always -r '(CHANGEME!)' device + grep --color=always -r '(CHANGEME!)' * exit 1 fi