vitrage-dashboard/tools/find_executables.sh
Ivan Kolodyazhny 2ac455370d Drop unnecessary executable flags
This patch also adds checks for executable files in
pep8 job.

Change-Id: I862ee6c891af05c58ab2aca1178cfd984efb2d3c
2018-12-05 14:10:27 +02:00

12 lines
327 B
Bash

OUTPUT=`find . \( -name .tox -o -name .git \) -prune -o -type f -perm /a=x -print`
if [ -n "$OUTPUT" ]; then
echo "Unexpected executable files are found:"
for f in $OUTPUT; do
echo $f
done
echo
echo "If you really need to add an executable file, add it to tools/executable_files.txt"
exit 1
fi