Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
fixed incorrect spacing after stamp to resolve logwatch errs
Browse files Browse the repository at this point in the history
  • Loading branch information
Asif Bacchus committed Jan 30, 2019
1 parent ec36c5c commit 8efaed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/NCscripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"


Expand Down

0 comments on commit 8efaed6

Please sign in to comment.