diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-11-16 22:34:02 -0600 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-11-16 22:34:02 -0600 |
commit | e2a07a56718b7ad6d5adfcbd391e66be0f5d4e53 (patch) | |
tree | c121d67ce3721406aaec7784d9711ba77b5c7cd2 | |
parent | e8a9f128a5d3fcc0fd5e8e0ce834d872e198a8fe (diff) | |
download | sbotools2-e2a07a56718b7ad6d5adfcbd391e66be0f5d4e53.tar.xz |
dont stuff get_sbo_location into $test, but wrap the if around it directly
-rwxr-xr-x | sboremove | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -39,10 +39,10 @@ EOF my ($help, $vers, $non_int, $no_reqs, $alwaysask, @excluded); GetOptions ( - 'help|h' => \$help, - 'version|v' => \$vers, + 'help|h' => \$help, + 'version|v' => \$vers, 'norequirements|R' => \$no_reqs, - 'nointeractive' => \$non_int, + 'nointeractive' => \$non_int, 'alwaysask|a' => \$alwaysask, ); @@ -55,8 +55,7 @@ my $inst_names = get_inst_names $installed; my @remove; for my $sbo (@ARGV) { - my $test = get_sbo_location ($sbo); - if ( defined $test ) { + if (get_sbo_location ($sbo)) { if ($sbo ~~ @$inst_names) { push @remove, $sbo } else { |