From 5651c96e4e9ec35b865f7496df3f30b4f373c657 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 14 Feb 2018 00:12:36 +0100 Subject: [PATCH] btrbk: archive: always print "[-]" if no action was performed for target --- btrbk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/btrbk b/btrbk index f383438..e668ba2 100755 --- a/btrbk +++ b/btrbk @@ -4787,9 +4787,10 @@ MAIN: if($droot->{CONFIG}->{UNRECOVERABLE}) { push(@unrecoverable, $droot->{CONFIG}->{UNRECOVERABLE}); } - if(@subvol_out) { - push @out, "$sroot->{PRINT}/$sroot->{CONFIG}->{snapshot_name}.*", @subvol_out, ""; + unless(@subvol_out) { + push @subvol_out, "[-] $droot->{PRINT}/$sroot->{CONFIG}->{snapshot_name}.*"; } + push @out, "$sroot->{PRINT}/$sroot->{CONFIG}->{snapshot_name}.*", @subvol_out, ""; } } @@ -4804,6 +4805,7 @@ MAIN: "--- deleted subvolume", "*** received subvolume (non-incremental)", ">>> received subvolume (incremental)", + "[-] no action", ], );