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