Skip to content

Commit

Permalink
skip all dot-dirs (eg .git .svn)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Jul 18, 2011
1 parent 0dfbb29 commit dd01ee4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions whatdists.pl
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ sub _all_installed {
wanted => sub {

unless (/\.pm$/i) {
# skip all dot-dirs (eg .git .svn)
$File::Find::prune = 1 if -d $File::Find::name and /^\.\w/;
# don't reenter a dir we've already done
$File::Find::prune = 1 if $dir_done{ $File::Find::name };
return;
Expand Down

0 comments on commit dd01ee4

Please sign in to comment.