aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-06 10:31:04 +0200
committerDanilo M. <danix@danix.xyz>2026-05-06 10:31:04 +0200
commit620a2f461943adc3f8df4010f32a53742f09a741 (patch)
tree4a77a2b5d286ff94ee53039ce6858c4e78f1c258
parent25c132b9ff69bfee0b573f8f7226a7b002a0a658 (diff)
downloaddots-backup-620a2f461943adc3f8df4010f32a53742f09a741.tar.gz
dots-backup-620a2f461943adc3f8df4010f32a53742f09a741.zip
fix: log_verbose exits 1 under set -e when VERBOSE=false
`[[ false ]]` returns exit code 1; `set -euo pipefail` killed restore loop on first skipped entry. Add `|| true` to suppress. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rwxr-xr-xdot-backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot-backup.sh b/dot-backup.sh
index 369ae3b..5130012 100755
--- a/dot-backup.sh
+++ b/dot-backup.sh
@@ -177,7 +177,7 @@ lastupdate() {
}
log_verbose() {
- [[ "$VERBOSE" == true ]] && echo -e "$1"
+ [[ "$VERBOSE" == true ]] && echo -e "$1" || true
}
do_rsync() {