From 95065fff87ef3ef03bc7752a1b64e7a298ad6af6 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Thu, 14 Sep 2023 16:47:21 +0200 Subject: [PATCH] updated borg state --- states/borg/templates/borg_job.sh.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/states/borg/templates/borg_job.sh.j2 b/states/borg/templates/borg_job.sh.j2 index 0fcfa43..56c8e07 100644 --- a/states/borg/templates/borg_job.sh.j2 +++ b/states/borg/templates/borg_job.sh.j2 @@ -30,6 +30,7 @@ borg init --encryption={{ job.encryption|default('repokey-blake2') }} info "Starting before tasks" {%- for task in job.before_tasks|default([]) %} {{ task }} +if [ $? -ne 0 ]; then echo error; fi {%- endfor %} info "Creating new archive"