diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-12 17:45:39 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-12 17:45:39 +0100 |
commit | d6b83f8450f6632e353e8389f2aae1ce9524ba32 (patch) | |
tree | a9c34b5e8d21ebaea21e709741965cfe2c2f4ca3 /sboclean | |
parent | 839e6ef83c3c39e7a525ca713d5feecb5b85ea2e (diff) | |
download | sbotools2-d6b83f8450f6632e353e8389f2aae1ce9524ba32.tar.xz |
SBO::Lib: Fix in(), and use it in more places
Diffstat (limited to 'sboclean')
-rwxr-xr-x | sboclean | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ use 5.16.0; use strict; use warnings FATAL => 'all'; -use SBO::Lib qw/ usage_error script_error /; +use SBO::Lib qw/ usage_error script_error in /; use File::Basename; use Getopt::Long qw(:config bundling); use File::Path qw(remove_tree); @@ -73,7 +73,7 @@ sub remove_stuff { my $dir = shift; opendir(my $dh, $dir); FIRST: while (my $ls = readdir $dh) { - next FIRST if $ls =~ /^(\.){1,2}$/; + next FIRST if in($ls => qw/ . .. /); rm_full("$dir/$ls"); } } |