aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-02-19 13:57:55 -0600
committerJ Pipkin <j@dawnrazor.net>2013-02-19 13:57:55 -0600
commita703387bceaa58be91ade36f1cf3473cb3939f3e (patch)
treeba1d4e92cf9c229cf8d5a1aacf64d4a0e650c55f
parentee472c4f764701bbc78f128622f01cb916f0641a (diff)
downloadsbotools2-a703387bceaa58be91ade36f1cf3473cb3939f3e.tar.xz
need $SBO::Lib to access tmp vars
-rwxr-xr-xsboclean4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboclean b/sboclean
index 52708ed..61c47fc 100755
--- a/sboclean
+++ b/sboclean
@@ -78,7 +78,7 @@ sub remove_stuff($) {
}
sub clean_c32() {
- my $dir = $tmpd;
+ my $dir = $SBO::Lib::tmpd;
opendir(my $dh, $dir);
FIRST: while (my $ls = readdir $dh) {
next FIRST unless $ls =~ /^package-.+-compat32$/;
@@ -89,7 +89,7 @@ sub clean_c32() {
remove_stuff $config{SBO_HOME} .'/distfiles' if $clean_dist;
if ($clean_work) {
- my $tsbo = $env_tmp ? $env_tmp : "$tmpd/SBo";
+ my $tsbo = $SBO::Lib::env_tmp ? $SBO::Lib::env_tmp : "$SBO::Lib::tmpd/SBo";
if ($tsbo =~ qr#^/tmp(|/)$# && !$interactive) {
warn "This will remove the entire contents of /tmp\n";
print "Proceed? [y] ";