From 32f10e4f4b6300cbb84cfd00969db707c0a75c6b Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 11 Apr 2016 22:50:57 +0200 Subject: [PATCH] check_integrity.sh: check only version controlled files. Checking files customized by the user is out of scope of this tool and sometimes even workflow hindering. --- config/check_integrity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/check_integrity.sh b/config/check_integrity.sh index a78fcb0..5350a3b 100755 --- a/config/check_integrity.sh +++ b/config/check_integrity.sh @@ -33,7 +33,7 @@ for T in "board" "printer"; do print $2; } ' < ../configtool/${T}.generic.h | while read W; do - for F in ${T}.*.h ../testcases/config.h.Profiling; do + for F in $(git ls-files ${T}.\*.h ../testcases/config.h.Profiling); do if ! grep "#define" ${F} | grep -q ${W}; then echo "Missing #define ${W} in ${F}." echo 1 > ${EXITFILE}