repo.or.cz
/
xuni.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
=== Overview ===
[xuni.git]
/
chwinmod.sh
blob
eb2acc4994b8a990025c60ca8837a47992fa7d7e
1
#!/bin/sh
2
3
path
=
"
$1
"
4
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
13
fi
14
elif
[
-d
$file
];
then
15
echo
"chmod 755
$file
"
16
chmod
755
$file
17
else
18
echo
"Ignoring
$file
"
19
fi
20
done
21