only change mtime of main dir, if sorting by mtime is selected
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
f17023255c
commit
8cc833a7b1
1 changed files with 2 additions and 2 deletions
|
@ -515,9 +515,9 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
_techo "Finished backup (rsync return code: $ret)."
|
||||
|
||||
#
|
||||
# Set modification time (mtime) to current time
|
||||
# Set modification time (mtime) to current time, if sorting by mtime is enabled
|
||||
#
|
||||
pcmd touch "${destination_dir}"
|
||||
[ -f "$c_mtime" ] && pcmd touch "${destination_dir}"
|
||||
|
||||
#
|
||||
# Check if rsync exit code indicates failure.
|
||||
|
|
Loading…
Reference in a new issue