This commit is contained in:
committer
2024-05-15 07:33:25 -05:00
parent 2455463331
commit ee6ffd239e

View File

@@ -77,14 +77,12 @@ deploy_file() {
echo "(ignore potential \"chown: cannot access\" error, which will occur if there are no dot-files in the directory)"
if [[ ${_recursive} != "recursive" ]] ; then
echo "one"
#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}.[^.]*
chown ${user}:${user} ${_trg_path}*
chown ${user}:${user} ${_trg_path}.[^.]*
else
echo "recursive"
# chown -R ${user}:${user} ${_trg_path}*
# chown -R ${user}:${user} ${_trg_path}.[^.]*
chown -R ${user}:${user} ${_trg_path}*
chown -R ${user}:${user} ${_trg_path}.[^.]*
fi
else
chown ${user}:${user} ${_trg_path}