mirror of
https://github.com/deajan/obackup.git
synced 2025-02-06 03:13:49 +01:00
Fixed exit code.
This commit is contained in:
parent
3dd8e456c0
commit
61cf6d4d2b
@ -1069,12 +1069,6 @@ then
|
|||||||
RunAfterHook
|
RunAfterHook
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
if [ $error_alert -ne 0 ]
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
LogError "Configuration file could not be loaded."
|
LogError "Configuration file could not be loaded."
|
||||||
exit 1
|
exit 1
|
||||||
@ -1089,6 +1083,8 @@ if [ $error_alert -ne 0 ]
|
|||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
LogError "Backup script finished with errors."
|
LogError "Backup script finished with errors."
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
Log "Backup script finshed."
|
Log "Backup script finshed."
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user