=== Overview ===
[xuni.git] / chwinmod.sh
blobeb2acc4994b8a990025c60ca8837a47992fa7d7e
1 #!/bin/sh
3 path="$1"
5 for file in $(find $path); do
6 if [ -f $file ]; then
7 if [ -n "$(file $file | grep executable)" ]; then
8 echo "chmod 755 $file"
9 chmod 755 $file
10 else
11 echo "chmod 644 $file"
12 chmod 644 $file
14 elif [ -d $file ]; then
15 echo "chmod 755 $file"
16 chmod 755 $file
17 else
18 echo "Ignoring $file"
20 done