u
This commit is contained in:
@@ -62,6 +62,8 @@ deploy_file() {
|
||||
# if the target path ends with a slash, we have a directory
|
||||
if [[ "$_trg_path" == */ ]]
|
||||
then
|
||||
echo "ignore potential \"chown: cannot access\" error"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user