commit 0e6a0b338a0f29832236a8fca4052d7ff81f8622
parent 121c219cd5edea7b9492dca1dd213f43370e8a58
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sat, 13 Dec 2025 01:47:12 +0100

Make sure website-backup.sh succeeds when it finishes

Diffstat:
Mwebsite-backup.sh | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/website-backup.sh b/website-backup.sh @@ -24,6 +24,9 @@ backup() { || notify "Website backup error" "Error backing up $2" # delete last if duplicated cmp -s "$output" "$last" && rm "$last" + + # this is needed so that if the last cmp returns false, the function still succeeds + return 0 } while read -r url file token