AimRT/_deps/protobuf-src/fix_permissions.sh

9 lines
147 B
Bash
Raw Normal View History

2025-01-12 20:42:42 +08:00
#!/bin/bash
for file in $(find . -type f); do
if [ "$(head -c 2 $file)" == "#!" ]; then
chmod u+x $file
else
chmod a-x $file
fi
done