iw6-mod/deps/protobuf/fix_permissions.sh
2024-02-27 01:34:37 -05:00

9 lines
147 B
Bash

#!/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