diff options
author | EuAndreh <eu@euandre.org> | 2023-03-30 08:27:15 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-30 08:27:15 -0300 |
commit | eccfc17f6e8dca5867e7c2d61f8716f5c939eeed (patch) | |
tree | 069105d698de38e1194312f3d3cf42dbd46fd0b5 | |
parent | etc/guix/home.scm: Add "gnome-disk-utility" package (diff) | |
download | dotfiles-eccfc17f6e8dca5867e7c2d61f8716f5c939eeed.tar.gz dotfiles-eccfc17f6e8dca5867e7c2d61f8716f5c939eeed.tar.xz |
bin/backup: Fix early termination desired behaviour
-rwxr-xr-x | bin/backup | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |