prune_backups CLI: print different message when there's no backups at all

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2020-08-20 13:50:10 +02:00
committed by Thomas Lamprecht
parent 7b73d327b5
commit c3e87d0f6e

View File

@ -932,6 +932,11 @@ our $cmddef = {
return if !$dryrun;
if (!scalar(@{$list})) {
print "No backups found\n";
return;
}
print "NOTE: this is only a preview and might not be what a subsequent\n" .
"prune call does if backups are removed/added in the meantime.\n\n";