From 61cf6d4d2b4ca088407aa5e482907ed16aaffd2e Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 15 Jul 2013 22:33:49 +0200 Subject: [PATCH] Fixed exit code. --- obackup.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/obackup.sh b/obackup.sh index c490647..354ceb3 100755 --- a/obackup.sh +++ b/obackup.sh @@ -1069,12 +1069,6 @@ then RunAfterHook fi CleanUp - if [ $error_alert -ne 0 ] - then - exit 1 - else - exit 0 - fi else LogError "Configuration file could not be loaded." exit 1 @@ -1089,6 +1083,8 @@ if [ $error_alert -ne 0 ] then SendAlert LogError "Backup script finished with errors." + exit 1 else Log "Backup script finshed." + exit 0 fi