If we exit a 0 we should still get the exit message

This commit is contained in:
Søren Theilgaard
2022-02-08 13:48:33 +01:00
parent 0432eb62d3
commit 557d63a4f3

View File

@@ -18,6 +18,8 @@ cleanupAndExit() { # $1 = exit code, $2 message, $3 level
reopenClosedProcess reopenClosedProcess
if [[ -n $2 && $1 -ne 0 ]]; then if [[ -n $2 && $1 -ne 0 ]]; then
printlog "ERROR: $2" $3 printlog "ERROR: $2" $3
else
printlog "$2" $3
fi fi
printlog "################## End Installomator, exit code $1 \n\n" REQ printlog "################## End Installomator, exit code $1 \n\n" REQ