more cleanups (especially in the permissions section)
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
1ea04937d8
commit
fca2d83dc4
7 changed files with 0 additions and 74 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue