diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-06 10:31:04 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-06 10:31:04 +0200 |
| commit | 620a2f461943adc3f8df4010f32a53742f09a741 (patch) | |
| tree | 4a77a2b5d286ff94ee53039ce6858c4e78f1c258 /dot-backup.sh | |
| parent | 25c132b9ff69bfee0b573f8f7226a7b002a0a658 (diff) | |
| download | dots-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>
Diffstat (limited to 'dot-backup.sh')
| -rwxr-xr-x | dot-backup.sh | 2 |
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() { |
