Change also base directory if requested on commanline.
This commit is contained in:
parent
a44887cd8d
commit
6c4416b149
@ -6,8 +6,12 @@ group=$2
|
||||
file_perm=${3:-664}
|
||||
dir_perm=${4:-2775}
|
||||
|
||||
chmod $dir_perm $base_dir
|
||||
chgrp $group $base_dir
|
||||
set_also_base_dir=${5:-false}
|
||||
|
||||
if $set_also_base_dir ; then
|
||||
chmod $dir_perm $base_dir
|
||||
chgrp $group $base_dir
|
||||
fi
|
||||
|
||||
while IFS='' read -r -d '' filename ; do
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user