aboutsummaryrefslogtreecommitdiff
path: root/sboinstall
diff options
context:
space:
mode:
Diffstat (limited to 'sboinstall')
-rwxr-xr-xsboinstall7
1 files changed, 4 insertions, 3 deletions
diff --git a/sboinstall b/sboinstall
index ccd4683..9c5479e 100755
--- a/sboinstall
+++ b/sboinstall
@@ -64,9 +64,10 @@ GetOptions(
'norequirements|R' => \$no_reqs,
);
-show_usage() and exit 0 if $help;
-show_version() and exit 0 if $vers;
-show_usage() and exit 1 unless exists $ARGV[0];
+if ($help) { show_usage(); exit 0 }
+if ($vers) { show_version(); exit 0 }
+
+if (!@ARGV) { show_usage(); exit 1 }
$noclean = $noclean eq 'TRUE' ? 1 : 0;
$distclean = $distclean eq 'TRUE' ? 1 : 0;