update: don't display devices with no backups in cmd_status

This commit is contained in:
qwjyh 2024-12-02 02:53:30 +09:00
parent af1b56eee2
commit 7e043a652c

View file

@ -95,6 +95,10 @@ pub(crate) fn cmd_status(
.unwrap_or(5);
for (backup_device, covering_backups) in covering_backup {
if covering_backups.is_empty() {
continue;
}
println!("Device: {}", backup_device.name());
for (backup, path_from_backup) in covering_backups {
let (last_backup, style) = match backup.last_backup() {