Only update our trace file after a successful sync

This commit is contained in:
David Bartley 2007-12-10 16:58:47 -05:00
parent 0b80062412
commit e1c142ce18
1 changed files with 0 additions and 1 deletions

View File

@ -212,7 +212,6 @@ if [[ "$TRACE_HOST" != "" ]]; then
$TO/${TRACE_DIR}/ >> $LOGFILE 2>&1
TRACE_POST_DATE=`ls -al $TRACE_FILE`
if [ "$TRACE_PRE_DATE" = "$TRACE_POST_DATE" ]; then
LANG=C date -u > "${TO}/${TRACE_DIR}/${HOSTNAME}"
echo 'Trace file for' $RSYNC_HOST::$RSYNC_DIR \
'unchanged, not rsyncing.' >> $LOGFILE
exit 0