From b013043031d4b51b3bca29ea8d386f688164e435 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 6 Jan 2016 12:42:19 +0100 Subject: move rfc822 date and archive serial into the terse/full block for tracefiles. do not include them in the date version --- bin/ftpsync | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/ftpsync b/bin/ftpsync index 376202f..ad53598 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -182,13 +182,13 @@ tracefile() { if [[ -d $(dirname "${TRACEFILE}") ]]; then { LC_ALL=POSIX LANG=POSIX date -u - rfc822date=$(LC_ALL=POSIX LANG=POSIX date -u -R) - echo "Date: ${rfc822date}" + if [[ date != ${EXTENDEDTRACE} ]]; then + rfc822date=$(LC_ALL=POSIX LANG=POSIX date -u -R) + echo "Date: ${rfc822date}" - FILESOA=$(awk '/serial/ { print $3 }' ${TO}/project/trace/master || echo unknown ) - echo "Archive serial: ${FILESOA}" + FILESOA=$(awk '/serial/ { print $3 }' ${TO}/project/trace/master || echo unknown ) + echo "Archive serial: ${FILESOA}" - if [[ date != ${EXTENDEDTRACE} ]]; then echo "Used ftpsync version: ${VERSION}" echo "Running on host: ${TRACEHOST}" if [[ full = ${EXTENDEDTRACE} ]]; then -- cgit v1.2.3