From ebaaee21398ada33c7f926b5fc66032401e483a4 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 31 Oct 2018 14:06:14 +0100 Subject: [PATCH] btrbk: print_formatted: omit title for format: raw,tlog,syslog --- btrbk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/btrbk b/btrbk index e374fed..34d920a 100755 --- a/btrbk +++ b/btrbk @@ -4236,7 +4236,6 @@ sub print_formatted(@) $format = $default_format; } - print $fh "$title\n" if($title); if($format eq "raw") { # output: key0="value0" key1="value1" ... @@ -4282,6 +4281,11 @@ sub print_formatted(@) } } + # print title + if($title) { + print $fh "$title\n"; + } + # print keys (headings) unless($args{no_header}) { my $fill = 0;