From 00edd9ebe0d35884a0e2560f3547599905e4862c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 5 Jan 2016 11:08:28 +0100 Subject: The unprefixed date line should remain the first line of a tracefile --- bin/ftpsync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ftpsync b/bin/ftpsync index 4e0290e..376202f 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -181,13 +181,13 @@ tracefile() { log "Creating a ${EXTENDEDTRACE} trace file" if [[ -d $(dirname "${TRACEFILE}") ]]; then { - FILESOA=$(awk '/serial/ { print $3 }' ${TO}/project/trace/master || echo unknown ) - echo "Archive serial: ${FILESOA}" - LC_ALL=POSIX LANG=POSIX date -u 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}" + if [[ date != ${EXTENDEDTRACE} ]]; then echo "Used ftpsync version: ${VERSION}" echo "Running on host: ${TRACEHOST}" -- cgit v1.2.3