diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-05-12 16:25:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-05-12 16:25:19 -0300 |
commit | ab8737a90a240633c7866c4cf360e115fb930cd5 (patch) | |
tree | 232ebecf1b611b2e645dece31e74065c3a6f041b | |
parent | 7a7c62ba1c843fe47c75b252ecda04bd9ba6db7c (diff) | |
download | puppet-backup-ab8737a90a240633c7866c4cf360e115fb930cd5.tar.gz puppet-backup-ab8737a90a240633c7866c4cf360e115fb930cd5.tar.bz2 |
Borg: fix backup exit status
-rw-r--r-- | templates/borg.sh.erb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |