From eccfc17f6e8dca5867e7c2d61f8716f5c939eeed Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 30 Mar 2023 08:27:15 -0300 Subject: bin/backup: Fix early termination desired behaviour --- bin/backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/backup b/bin/backup index be7d996..4e95ed8 100755 --- a/bin/backup +++ b/bin/backup @@ -92,6 +92,7 @@ ARCHIVE_TAG="${1:-manual}" run() { + STATUS=0 set -x # The contents of $VERBOSE_FLAGS doesn't involve user input: # shellcheck disable=2086 @@ -103,8 +104,7 @@ run() { --stats \ --compression lzma,9 \ "::{hostname}-{now}-$ARCHIVE_TAG" \ - ~/ - STATUS=$? + ~/ || STATUS=$? set +x if [ "$STATUS" = 0 ]; then -- cgit v1.2.3