SORT: make it more explicit, which sorting options are used

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-07-27 09:39:33 +02:00
parent 483cfee90c
commit c2bc225dc0
1 changed files with 3 additions and 3 deletions

View File

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