aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-30 08:27:15 -0300
committerEuAndreh <eu@euandre.org>2023-03-30 08:27:15 -0300
commiteccfc17f6e8dca5867e7c2d61f8716f5c939eeed (patch)
tree069105d698de38e1194312f3d3cf42dbd46fd0b5
parentetc/guix/home.scm: Add "gnome-disk-utility" package (diff)
downloaddotfiles-eccfc17f6e8dca5867e7c2d61f8716f5c939eeed.tar.gz
dotfiles-eccfc17f6e8dca5867e7c2d61f8716f5c939eeed.tar.xz
bin/backup: Fix early termination desired behaviour
-rwxr-xr-xbin/backup4
1 files 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