diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-06-29 08:49:50 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-06-29 08:49:50 -0500 |
commit | bcde90273cd5a70d93c41da85f6e38cfab014272 (patch) | |
tree | 620c05cef9e1ab27eb7bf29f7c2f988003b4bb36 | |
parent | ed1be9adade168b666f21bce0669cfe399cbe8db (diff) | |
download | sbotools-bcde90273cd5a70d93c41da85f6e38cfab014272.tar.xz |
fixed bug in sboclean, regex for . and .. in directory listing severely b0rked
-rwxr-xr-x | sboclean | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] "; |