sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 93afd6ea3fa470036f5f2f83de653efca7418dfa
parent 5be0914b6e6f69b9ac5d76a87dbad2c72e6d527f
Author: Jacob Pipkin <j@dawnrazor.net>
Date:   Thu, 31 May 2012 16:44:02 -0500

cleanup - if () to postscript if

Diffstat:
Msbofind | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/sbofind b/sbofind @@ -89,14 +89,10 @@ if (exists $findings[0]) { while (my ($key, $value) = each %{$hash}) { push (@listing, "SBo: $key\n"); push (@listing, "Path: $value\n"); - if ($show_info eq 'TRUE') { - push (@listing, "info: ". get_file_contents - ("$value/$key.info") ); - } - if ($show_readme eq 'TRUE') { - push (@listing, "README: ". get_file_contents - ("$value/README") ); - } + push (@listing, "info: ". get_file_contents + ("$value/$key.info") ) if $show_info eq 'TRUE'; + push (@listing, "README: ". get_file_contents ("$value/README") ) + if $show_readme eq 'TRUE'; push (@listing, "\n"); } }