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:
Nico Schottelius 2009-08-20 16:25:25 +02:00
parent f17023255c
commit 8cc833a7b1
1 changed files with 2 additions and 2 deletions

View File

@ -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.