From: Silvio Rhatto Date: Sun, 12 May 2019 19:25:19 +0000 (-0300) Subject: Borg: fix backup exit status X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ab8737a90a240633c7866c4cf360e115fb930cd5;p=puppet-backup.git Borg: fix backup exit status --- 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