This commit is contained in:
t470p
2024-05-09 20:21:45 -05:00
parent 33ac537285
commit 0035ac6cf2

View File

@@ -62,8 +62,8 @@ deploy_file() {
# if the target path ends with a slash, we have a directory
if [[ "$_trg_path" == */ ]]
then
chown ${user}:${user} ${_trg_path}*
chown ${user}:${user} ${_trg_path}.*
# https://serverfault.com/questions/156437/how-to-chown-a-directory-recursively-including-hidden-files-or-directories
chown ${user}:${user} ${_trg_path}.[^.]*
else
chown ${user}:${user} ${_trg_path}
fi