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