mirror of https://github.com/digint/btrbk
btrbk: print "Dryrun: YES" in backup summary header if dryrun is set
parent
1905d80969
commit
d445dd0b12
9
btrbk
9
btrbk
|
@ -1599,9 +1599,11 @@ sub print_header(@)
|
|||
}
|
||||
if($config) {
|
||||
print " Config: $config->{SRC_FILE}\n";
|
||||
|
||||
if($config->{CMDLINE_FILTER_LIST})
|
||||
{
|
||||
}
|
||||
if($dryrun) {
|
||||
print " Dryrun: YES\n";
|
||||
}
|
||||
if($config && $config->{CMDLINE_FILTER_LIST}) {
|
||||
my @list = sort @{$config->{CMDLINE_FILTER_LIST}};
|
||||
my @sorted = ( grep(/^group/, @list),
|
||||
grep(/^volume/, @list),
|
||||
|
@ -1612,7 +1614,6 @@ sub print_header(@)
|
|||
print join("\n ", @sorted);
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
if($args{info}) {
|
||||
print "\n" . join("\n", grep(defined, @{$args{info}})) . "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue