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

9 lines
154 B
Bash
Raw Normal View History

2023-10-22 22:06:22 +02:00
#!/bin/sh
2023-10-30 01:06:33 +01:00
for s in $(find . -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