From c2bc225dc08b2625d42c26387720f7e89403868b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 27 Jul 2009 09:39:33 +0200 Subject: [PATCH] SORT: make it more explicit, which sorting options are used Signed-off-by: Nico Schottelius --- ccollect.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 90862b1..a6aa098 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -48,11 +48,9 @@ FULL_VERSION="ccollect ${VERSION} (${RELEASE})" # # CDATE: how we use it for naming of the archives # DDATE: how the user should see it in our output (DISPLAY) -# TSORT: how to sort: tc = ctime, t = mtime # CDATE="date +%Y%m%d-%H%M" DDATE="date +%Y-%m-%d-%H:%M:%S" -TSORT="tc" # # unset values @@ -296,10 +294,12 @@ while [ "${i}" -lt "${no_sources}" ]; do done # - # With mtime option, sort backup directories with mtime (default is ctime) + # Sort by ctime (default) or mtime (configuration option) # if [ -f "$c_mtime" ] ; then TSORT="t" + else + TSORT="tc" fi #