blob: e22dda5306e10ea23bdc35f7d67fab2005c90fb6 [file] [log] [blame]
Martin Roth721ee012016-01-25 15:12:21 -07001#!/bin/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
Patrick Georgi55d26872017-09-06 13:18:06 +02007git ls-tree --full-tree -r HEAD src |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.,"