From 2b6ce27d10f4ad669e9088b1ccd2a98729d98470 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 24 May 2025 16:15:02 +0200 Subject: [PATCH] fix return by error --- backup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backup b/backup index a0e70d5..e85e0d6 100755 --- 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" } -- 2.47.3