+ support chown of directory content

This commit is contained in:
t470p
2024-05-09 20:07:59 -05:00
parent 9f1872fef6
commit 84c9508d2e

View File

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