aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-06-29 08:49:50 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-06-29 08:49:50 -0500
commitbcde90273cd5a70d93c41da85f6e38cfab014272 (patch)
tree620c05cef9e1ab27eb7bf29f7c2f988003b4bb36 /sboclean
parented1be9adade168b666f21bce0669cfe399cbe8db (diff)
downloadsbotools-bcde90273cd5a70d93c41da85f6e38cfab014272.tar.xz
fixed bug in sboclean, regex for . and .. in directory listing severely b0rked
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboclean b/sboclean
index 0c0e30a..3e4da48 100755
--- a/sboclean
+++ b/sboclean
@@ -53,7 +53,7 @@ sub remove_stuff {
my $dir = shift;
opendir (my $dh, $dir);
FIRST: while (my $ls = readdir $dh) {
- next FIRST if $ls =~ /^\.[\.]{0,1}$/;
+ next FIRST if $ls =~ /^(\.){1,2}$/;
my $full = "$dir/$ls";
if ($interactive eq 'TRUE') {
print "Remove $full? [n] ";