From 8cc833a7b19381515faac2d49b10b01157221313 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 20 Aug 2009 16:25:25 +0200 Subject: [PATCH] only change mtime of main dir, if sorting by mtime is selected Signed-off-by: Nico Schottelius --- ccollect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 278e12a..d2f7ec7 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -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.