btrbk: bugfix: check undef on ABORTED flag in summary

pull/30/head
Axel Burri 2015-06-01 12:45:18 +02:00
parent bb7aa10b23
commit db6a1a464a
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
btrbk-current btrbk-current
* Use "cgen" for snapshot comparison. * Use "cgen" for snapshot comparison.
* Bugfix: fix crash in summary display (closes: #22).
btrbk-0.19.0 btrbk-0.19.0

5
btrbk
View File

@ -2237,7 +2237,10 @@ MAIN:
if(@subvol_out) { if(@subvol_out) {
push @out, "$svol->{PRINT}", @subvol_out, ""; push @out, "$svol->{PRINT}", @subvol_out, "";
} }
elsif($config_subvol->{ABORTED} ne "USER_SKIP") { elsif($config_subvol->{ABORTED} && ($config_subvol->{ABORTED} eq "USER_SKIP")) {
# don't print "<no_action>" on USER_SKIP
}
else {
push @out, "$svol->{PRINT}", "<no_action>", ""; push @out, "$svol->{PRINT}", "<no_action>", "";
} }
} }