aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbofind12
1 files 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");
}
}