From 84c9508d2e3b4ee33dd393c06e8d4ea86ba8e128 Mon Sep 17 00:00:00 2001 From: t470p Date: Thu, 9 May 2024 20:07:59 -0500 Subject: [PATCH] + support chown of directory content --- scripts/99_deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 079ff0f..107acaa 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -59,13 +59,13 @@ 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!" + chown ${user}:${user} ${_trg_path}/* + else + chown ${user}:${user} ${_trg_path} fi - echo "######" - echo $_trg_path - chown ${user}:${user} ${_trg_path} fi suffix=".sh"