aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-09-01 04:53:46 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-09-01 04:53:46 -0500
commita302bd5093f2b02ade4e1d903e16d9aff69430a9 (patch)
treeae4b53c70c939236e98b5e9764bf61b02e7b56d0 /sboclean
parent834e3d2778e81a9b6ffa5a8bc2ad76fb93c91719 (diff)
downloadsbotools2-a302bd5093f2b02ade4e1d903e16d9aff69430a9.tar.xz
more cleanups, fixes, and other backports from the slack14 branch
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean9
1 files changed, 4 insertions, 5 deletions
diff --git a/sboclean b/sboclean
index 61d0ce6..fef857f 100755
--- a/sboclean
+++ b/sboclean
@@ -10,14 +10,13 @@
# license: WTFPL <http://sam.zoy.org/wtfpl/COPYING>
use 5.12.3;
+use strict;
+use warnings FATAL => 'all';
use SBO::Lib;
use File::Basename;
use Getopt::Std;
use File::Path qw(remove_tree);
-use strict;
-use warnings FATAL => 'all';
-my %config = %SBO::Lib::config;
my $self = basename ($0);
sub show_usage () {
@@ -64,7 +63,7 @@ sub remove_stuff ($) {
}
}
-remove_stuff ($config{SBO_HOME} . '/distfiles') if $clean_dist;
-remove_stuff ('/tmp/SBo') if $clean_work;
+remove_stuff $config{SBO_HOME} . '/distfiles' if $clean_dist;
+remove_stuff '/tmp/SBo' if $clean_work;
exit 0;