From 47fe26d4b80ddcd99a528476b4e30a15b7ebd32a Mon Sep 17 00:00:00 2001 From: dataking Date: Wed, 7 Sep 2016 01:00:25 -0700 Subject: [PATCH] Minor tweaks; bug fixes; style changes --- lynis_report.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lynis_report.pl b/lynis_report.pl index 3f967ea..a151514 100755 --- a/lynis_report.pl +++ b/lynis_report.pl @@ -245,6 +245,15 @@ if ($excel) { } else { $summary_ws->write("A$next_row", "suggestions (0):", $subsub_format); } + @table_data = undef; + if ((exists($lynis_report_data{'manual[]'})) and (ref($lynis_report_data{'manual[]'}) eq 'ARRAY')) { + foreach my $mc ( sort @{$lynis_report_data{'manual[]'}} ) { + $summary_ws->write("A${next_row}", $mc, $merge_format); + $next_row++; + } + } else { + $summary_ws->write("A${next_row}", "manual checks (0):", $subsub_format); + } ### lynis report data my $lynis_ws = $wb->add_worksheet('lynis info');