aboutsummaryrefslogtreecommitdiff
path: root/sbofind
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 17:21:28 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 17:21:28 +0200
commit0a035d36fb6a225640d31162e4b348dacfa93f96 (patch)
treee551ff0a6a8e0f20583b22a16213c5b708c3194b /sbofind
parentc1e7155333f1a86f90a7843e87bb1aa9145acdda (diff)
downloadsbotools2-0a035d36fb6a225640d31162e4b348dacfa93f96.tar.xz
Remove useless conditions from show_usage/version invocations
Diffstat (limited to 'sbofind')
-rwxr-xr-xsbofind6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbofind b/sbofind
index 8fd08f9..27e0066 100755
--- a/sbofind
+++ b/sbofind
@@ -52,10 +52,10 @@ GetOptions(
'queue|q' => \$show_queue,
);
-show_usage() and exit 0 if $help;
-show_version() and exit 0 if $vers;
+if ($help) { show_usage(); exit 0 }
+if ($vers) { show_version(); exit 0 }
-show_usage() and exit 1 unless exists $ARGV[0];
+if (!@ARGV) { show_usage(); exit 1 }
my $search = $ARGV[0];
# if we can't find SLACKBUILDS.TXT in $config{HOME}, prompt to fetch the tree