blob: 640bb08870e0c1ef0d88a916e342b65db38bc8d8 [file] [log] [blame]
Martin Roth0ad5fbd2020-12-24 12:06:38 -07001#!/usr/bin/env sh
Patrick Georgi55189c92020-05-10 20:09:31 +02002# SPDX-License-Identifier: GPL-2.0-or-later
Martin Roth721ee012016-01-25 15:12:21 -07003#
4# DESCR: Check that source files are not executable
5
6LC_ALL=C export LC_ALL
Jan Dabrosffa58cf2020-07-16 13:38:01 +02007git ls-tree --full-tree -r HEAD src tests |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \
Martin Roth721ee012016-01-25 15:12:21 -07008 sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"