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"