venus-dashboard/tools/find_executables.sh
baiziyu 0ad485a844 * initial commit.
Change-Id: I9829560c0af20bb06ebfd283f147bc92378abe50
2021-05-31 19:14:21 +08:00

13 lines
382 B
Bash

OUTPUT=`find . \( -name .tox -o -name .git \) -prune -o -type f -perm /a=x -print \
| grep -v -F -f ./tools/executable_files.txt`
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