From: Bastian Dehn Date: Sat, 24 May 2025 14:15:02 +0000 (+0200) Subject: fix return by error X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2b6ce27d10f4ad669e9088b1ccd2a98729d98470;p=simple-backup.git fix return by error --- 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" }