neb/tools/repo/check.d/00-all-tools-executable.sh

9 lines
159 B
Bash
Raw Normal View History

2023-10-22 22:06:22 +02:00
#!/bin/sh
for s in $(find tools/ -type f -regex ".*\.\(sh\|py\)"); do
2023-10-22 22:06:22 +02:00
if ! [ -x $s ]; then
echo "$s is not executable"
exit 1
fi
done