From 852593a4337fceb983d64aae8ad113bd4f605b54 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Wed, 27 Dec 2017 10:19:35 +0100 Subject: [PATCH] Syntax fix --- sources/lib/core/include_core.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sources/lib/core/include_core.sh b/sources/lib/core/include_core.sh index 1fa4e08..c3b56be 100644 --- a/sources/lib/core/include_core.sh +++ b/sources/lib/core/include_core.sh @@ -58,7 +58,9 @@ do ARCHIVE_FILE="${ARCHIVE_DIR}/hc.${YEAR_MONTH}.log" cat ${ARCHIVE_FILE} ${TMP1_FILE} | sort -u >${TMP2_FILE} mv ${TMP2_FILE} ${ARCHIVE_FILE} 2>/dev/null || { - warn "failed to move archive file, aborting"; return 2 } + warn "failed to move archive file, aborting" + return 2 + } LOG_COUNT=$(wc -l ${ARCHIVE_FILE} | cut -f1 -d' ') log "# entries in ${ARCHIVE_FILE} now: ${LOG_COUNT}" @@ -71,7 +73,9 @@ do if [[ -s ${TMP2_FILE} ]] then mv ${TMP2_FILE} ${HC_LOG} 2>/dev/null || { - warn "failed to move HC log file, aborting"; return 2 } + warn "failed to move HC log file, aborting" + return 2 + } LOG_COUNT=$(wc -l ${HC_LOG} | cut -f1 -d' ') log "# entries in ${HC_LOG} now: ${LOG_COUNT}" ARCHIVE_RC=1