Martin Roth | 721ee01 | 2016-01-25 15:12:21 -0700 | [diff] [blame] | 1 | #!/bin/sh |
Patrick Georgi | 55189c9 | 2020-05-10 20:09:31 +0200 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0-or-later |
Martin Roth | 721ee01 | 2016-01-25 15:12:21 -0700 | [diff] [blame] | 3 | # |
| 4 | # DESCR: Check that source files are not executable |
| 5 | |
| 6 | LC_ALL=C export LC_ALL |
Patrick Georgi | 55d2687 | 2017-09-06 13:18:06 +0200 | [diff] [blame] | 7 | git ls-tree --full-tree -r HEAD src |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \ |
Martin Roth | 721ee01 | 2016-01-25 15:12:21 -0700 | [diff] [blame] | 8 | sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.," |