aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-05-31 16:44:02 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-05-31 16:44:02 -0500
commit93afd6ea3fa470036f5f2f83de653efca7418dfa (patch)
tree3a3b8d2fb77e232239dad00aab5482ebf0b19c99
parent5be0914b6e6f69b9ac5d76a87dbad2c72e6d527f (diff)
downloadsbotools2-93afd6ea3fa470036f5f2f83de653efca7418dfa.tar.xz
cleanup - if () to postscript if
-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");
}
}