From c3e87d0f6ef94f32add989f8d10cfc91d171ec5c Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Thu, 20 Aug 2020 13:50:10 +0200 Subject: [PATCH] prune_backups CLI: print different message when there's no backups at all Signed-off-by: Fabian Ebner --- PVE/CLI/pvesm.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/CLI/pvesm.pm b/PVE/CLI/pvesm.pm index 93ef977..caac51b 100755 --- a/PVE/CLI/pvesm.pm +++ b/PVE/CLI/pvesm.pm @@ -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";