summaryrefslogtreecommitdiff
path: root/mark-as-expendable-dir.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-06 21:13:10 +0100
committerErich Eckner <git@eckner.net>2019-03-18 19:49:20 +0100
commit59a95c8d8ccaae9b62b28477dd0fbc685dea6186 (patch)
treef860f36214ad9d76bd0c1f40f618453ee5599f23 /mark-as-expendable-dir.in
parent870d2cb3873dd3881169342198c5b8822e35e6db (diff)
downloadmark-as-expendable-dir-0.2.tar.xz
mark-as-expendable-dir.in: chown tagfile to owner of directoryHEADv0.2master
Diffstat (limited to 'mark-as-expendable-dir.in')
-rw-r--r--mark-as-expendable-dir.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/mark-as-expendable-dir.in b/mark-as-expendable-dir.in
index bb31b3e..c074d14 100644
--- a/mark-as-expendable-dir.in
+++ b/mark-as-expendable-dir.in
@@ -71,14 +71,17 @@ do
printf '# For information about cache directory tags, see:\n'
printf '# http://www.brynosaurus.com/cachedir/\n'
} > "${dir}/CACHEDIR.TAG"
+ chown --reference "${dir}" "${dir}/CACHEDIR.TAG"
fi
if [ ! -f "${dir}/.rsync-filter" ]; then
{
printf '+ .rsync-filter\n'
printf -- '- *\n'
} > "${dir}/.rsync-filter"
+ chown --reference "${dir}" "${dir}/.rsync-filter"
fi
if [ ! -f "${dir}/.nobackup" ]; then
touch "${dir}/.nobackup"
+ chown --reference "${dir}" "${dir}/.nobackup"
fi
done