From 8efaed6bb7c458d7c7fa9b86e19b5b5995c04ef1 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 30 Jan 2019 11:57:10 -0700 Subject: [PATCH] fixed incorrect spacing after stamp to resolve logwatch errs --- root/NCscripts/backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/NCscripts/backup.sh b/root/NCscripts/backup.sh index be5434d..1afc94b 100755 --- a/root/NCscripts/backup.sh +++ b/root/NCscripts/backup.sh @@ -120,7 +120,7 @@ function quit { for errCode in "${exitError[@]}"; do errStamp="${errCode%%_*}" errValue="${errCode##*_}" - echo -e "${err}${errStamp}-- [ERROR] ${errorExplain[$errValue]}" \ + echo -e "${err}${errStamp} -- [ERROR] ${errorExplain[$errValue]}" \ "(code: ${errValue}) --${normal}" >> "$logFile" done exit 2 @@ -429,9 +429,9 @@ fi ### Log start of script operations -echo -e "${note}[$(stamp)]--- Start $scriptName execution ---${normal}" \ +echo -e "${note}[$(stamp)] --- Start $scriptName execution ---${normal}" \ >> "$logFile" -echo -e "${info}[$(stamp)]-- [INFO] Log file located at ${lit}${logFile}${info}" \ +echo -e "${info}[$(stamp)] -- [INFO] Log file located at ${lit}${logFile}${info}" \ "--${normal}" >> "$logFile"