diff options
-rwxr-xr-x | contrib/update-copyright.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/update-copyright.pl b/contrib/update-copyright.pl index 9458bb14d..5f31f48c9 100755 --- a/contrib/update-copyright.pl +++ b/contrib/update-copyright.pl @@ -117,6 +117,7 @@ print "Updating sources...\n"; while($#searchdirs >= 0) { my $dir = shift @searchdirs; + $dir =~ s,\/$,,; # remove trailing slash from directory my $mode = (stat($dir))[2] || warn "file or directory \`$dir' does not exist!"; my $is_directory = S_ISDIR($mode); if($is_directory) { |