init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
19
remove_wrong_x
Normal file
19
remove_wrong_x
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
#file=`ls -l $1 | egrep '^d' | awk ' {print $9 }'`
|
||||
#if [ -z file ]; then echo $1;fi
|
||||
|
||||
# echo gerade : $1
|
||||
# file : $file
|
||||
|
||||
if [ -d "$1" ]
|
||||
then
|
||||
echo "dir : $1"
|
||||
chmod u=rwx,g=rx,o-rwx $1
|
||||
elif [ -x "$1" ];then
|
||||
echo "exe: $1"
|
||||
chmod u+rw,g+rx,o-rwx $1
|
||||
else
|
||||
echo "file: $1"
|
||||
chmod u+rw,g+r,o-rwx $1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue