From 93afd6ea3fa470036f5f2f83de653efca7418dfa Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Thu, 31 May 2012 16:44:02 -0500 Subject: cleanup - if () to postscript if --- sbofind | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sbofind b/sbofind index 12a07fc..e32d940 100755 --- 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"); } } -- cgit v1.2.3