note exit on error at end of log for clarity

This commit is contained in:
Asif Bacchus 2019-06-18 22:06:26 -06:00
parent 57b13a3844
commit ba27cff791
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ exitError () {
printf "${err}[%s] -- [ERROR] %s: %s --${norm}\n" \
"$(stamp)" "$1" "$2" >> "$logFile"
cleanup
# note script completion with error
printf "${err}[%s] --- %s execution completed with error ---${norm}\n" \
"$(stamp)" "$scriptName" >> "$logFile"
exit "$1"
}