Change also base directory if requested on commanline.

This commit is contained in:
Christoph 2017-03-22 16:33:21 +01:00
parent a44887cd8d
commit 6c4416b149

View File

@ -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