aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-08-30 14:03:49 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-08-30 14:03:49 -0500
commit5ca399e0e9ab12063f15c4ab14443ba762877634 (patch)
treee4f47f487b7e9f8cbbcd63a8a52b28ece7d73f8d /sboclean
parentdd031840dcb5d295b26b15ad7aac694b1d300072 (diff)
downloadsbotools-5ca399e0e9ab12063f15c4ab14443ba762877634.tar.xz
bugfixes++
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboclean b/sboclean
index 3154bd1..fd6f5c8 100755
--- a/sboclean
+++ b/sboclean
@@ -49,7 +49,7 @@ unless ($clean_dist || $clean_work) {
sub remove_stuff ($) {
exists $_[0] or script_error 'remove_stuff requires an argument';
- say "Nothing to do." and return 1 unless -d $_[0];
+ -d $[0] or say "Nothing to do." and return 1;
my $dir = shift;
opendir (my $dh, $dir);
FIRST: while (my $ls = readdir $dh) {