From ab8737a90a240633c7866c4cf360e115fb930cd5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 12 May 2019 16:25:19 -0300 Subject: Borg: fix backup exit status --- templates/borg.sh.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/borg.sh.erb b/templates/borg.sh.erb index 652bfa0..736ad4f 100644 --- a/templates/borg.sh.erb +++ b/templates/borg.sh.erb @@ -107,4 +107,6 @@ if [ ${global_exit} -gt 1 ]; then info "Backup and/or Prune finished with an error" fi -exit ${global_exit} +if [ "${global_exit}" != "0" ]; then + fatal "Error completing borg action: exit code ${global_exit}" +fi -- cgit v1.2.3