diff --git a/src/tools/copyright.pl b/src/tools/copyright.pl index 79458b551c4b5026619547417c8765b118fe4ccb..d52a67e347d9ec52dd7838b28656ec19449a20d8 100755 --- a/src/tools/copyright.pl +++ b/src/tools/copyright.pl @@ -24,7 +24,7 @@ find({wanted => \&wanted, no_chdir => 1}, '.'); sub wanted { # prevent corruption of git indexes, ./.git - if ($File::Find::name =~ m{^\./\.git$}) + if ($_ eq '.git') { $File::Find::prune = 1; return;