aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-16 22:34:02 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-16 22:34:02 -0600
commite2a07a56718b7ad6d5adfcbd391e66be0f5d4e53 (patch)
treec121d67ce3721406aaec7784d9711ba77b5c7cd2
parente8a9f128a5d3fcc0fd5e8e0ce834d872e198a8fe (diff)
downloadsbotools2-e2a07a56718b7ad6d5adfcbd391e66be0f5d4e53.tar.xz
dont stuff get_sbo_location into $test, but wrap the if around it directly
-rwxr-xr-xsboremove9
1 files changed, 4 insertions, 5 deletions
diff --git a/sboremove b/sboremove
index 7ffaf3d..5439524 100755
--- a/sboremove
+++ b/sboremove
@@ -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 {