aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-01-13 08:11:20 -0600
committerJ Pipkin <j@dawnrazor.net>2013-01-13 08:11:20 -0600
commite86433279141617306c136e2cac4ca42d5821d55 (patch)
tree005ded952a33a4ae3db38a8706bc6d00947123ee /sboclean
parent08947a0d754cfc1e64fb7cfec5619b7d06f44f05 (diff)
downloadsbotools-e86433279141617306c136e2cac4ca42d5821d55.tar.xz
bug fixes to initial commit
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean5
1 files changed, 3 insertions, 2 deletions
diff --git a/sboclean b/sboclean
index 3a43ade..c9ee8c0 100755
--- a/sboclean
+++ b/sboclean
@@ -78,12 +78,13 @@ sub remove_stuff($) {
}
sub clean_c32() {
- opendir(my $dh, '/tmp/');
+ my $dir = '/tmp';
+ opendir(my $dh, $dir);
FIRST: while (my $ls = readdir $dh) {
next FIRST unless $ls =~ /^package-.+-compat32$/;
rm_full "$dir/$ls";
}
-{
+}
remove_stuff $config{SBO_HOME} .'/distfiles' if $clean_dist;