aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-10-04 21:19:32 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-10-04 21:19:32 -0500
commitcc976e1f56f1feada2e69a3127fca2c195af1c46 (patch)
tree1b66a1c1e5f7fb045f3f834698147e772900d57a /sboclean
parent55c308767feb1ec95d7588bc5bbe7c3c0803ffbb (diff)
downloadsbotools2-cc976e1f56f1feada2e69a3127fca2c195af1c46.tar.xz
consistency and cleanup fixes
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean10
1 files changed, 4 insertions, 6 deletions
diff --git a/sboclean b/sboclean
index 60d114c..502c39c 100755
--- a/sboclean
+++ b/sboclean
@@ -6,7 +6,6 @@
# script to clean stuff left around from sbotools.
#
# author: Jacob Pipkin <j@dawnrazor.net>
-# date: Boomtime, the 6th day of Confusion in the YOLD 3178
# license: WTFPL <http://sam.zoy.org/wtfpl/COPYING>
use 5.12.3;
@@ -48,12 +47,11 @@ GetOptions (
'interactive|i' => \$interactive,
);
-show_usage && exit 0 if $help;
-show_version && exit 0 if $vers;
+show_usage and exit 0 if $help;
+show_version and exit 0 if $vers;
-unless ($clean_dist || $clean_work) {
- show_usage, die "You must specify at least one of -d or -w.\n";
-}
+show_usage, die "You must specify at least one of -d or -w.\n" unless
+ ($clean_dist || $clean_work);
sub remove_stuff ($) {
exists $_[0] or script_error 'remove_stuff requires an argument';