+ support chown of directory content
This commit is contained in:
@@ -59,14 +59,14 @@ deploy_file() {
|
|||||||
|
|
||||||
# only chown if _no_chown variable is empty
|
# only chown if _no_chown variable is empty
|
||||||
if [ -z "${_no_chown}" ]; then
|
if [ -z "${_no_chown}" ]; then
|
||||||
|
# if the target path ends with a slash, we have a directory
|
||||||
if [[ "$_trg_path" == */ ]]
|
if [[ "$_trg_path" == */ ]]
|
||||||
then
|
then
|
||||||
echo "YOOOO!"
|
chown ${user}:${user} ${_trg_path}/*
|
||||||
fi
|
else
|
||||||
echo "######"
|
|
||||||
echo $_trg_path
|
|
||||||
chown ${user}:${user} ${_trg_path}
|
chown ${user}:${user} ${_trg_path}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
suffix=".sh"
|
suffix=".sh"
|
||||||
if [[ ${file_name} == *$suffix ]]; then
|
if [[ ${file_name} == *$suffix ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user