more cleanups (especially in the permissions section)

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2010-01-02 13:35:22 +01:00
commit fca2d83dc4
7 changed files with 0 additions and 74 deletions

View file

@ -1,19 +0,0 @@
#!/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=rwx,g=rx,o-rwx $1
else
echo "file: $1"
chmod g=r,o-rwx $1
fi