mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
9 lines
147 B
Bash
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
|