lint-stable: Only check files tracked by git (ie source files) for +x

Change-Id: I99cbcba7a086ef950f248888a83cf24a4db4aee9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/21419
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Georgi 2017-09-06 13:18:06 +02:00
parent c68c4bca1a
commit 55d26875b3
1 changed files with 1 additions and 1 deletions

View File

@ -16,5 +16,5 @@
# DESCR: Check that source files are not executable # DESCR: Check that source files are not executable
LC_ALL=C export LC_ALL LC_ALL=C export LC_ALL
find src -type f -a \( -perm -100 -o -perm -010 -o -perm -001 \) -a \! -name '*.sh'| \ git ls-tree --full-tree -r HEAD src |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \
sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.," sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"