]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix return by error
authorBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 14:15:02 +0000 (16:15 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 14:15:02 +0000 (16:15 +0200)
backup

diff --git a/backup b/backup
index a0e70d5102b5008f27f28597f1dd112b2a7662c0..e85e0d649b92e4f871ac2feee33e733a93e09a31 100755 (executable)
--- a/backup
+++ b/backup
@@ -281,10 +281,11 @@ main()
                "$backup_name")
        echo "ℹ️  INFO: last backup dir path $last_backup_dir_path"
 
-       backup_remotes "$backup_full_path" "$last_backup_dir_path"
-       make_history "$backup_path"
-       check_backup_date
-       cleanup_backups "$backup_path" "$backup_name" $backup_count
+       backup_remotes "$backup_full_path" "$last_backup_dir_path" || return $?
+       make_history "$backup_path" || return $?
+       check_backup_date || return $?
+       cleanup_backups "$backup_path" "$backup_name" $backup_count \
+               || return $?
 
        echo "✅ SUCCESS: backup"
 }