summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-01-06 12:42:19 +0100
committerPeter Palfrader <peter@palfrader.org>2016-01-06 12:42:19 +0100
commitb013043031d4b51b3bca29ea8d386f688164e435 (patch)
tree24abfe41a7e8631c8d65d997c71eec967bb92256
parent00edd9ebe0d35884a0e2560f3547599905e4862c (diff)
move rfc822 date and archive serial into the terse/full block for tracefiles. do not include them in the date version
-rwxr-xr-xbin/ftpsync10
1 files 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