From d6d34604fa6d4c260edfc10a5b7f543540be75f4 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Tue, 11 Jul 2017 11:55:54 -0700 Subject: [PATCH] Remove trailing slashes from directories if specified via command line. --- contrib/update-copyright.pl | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.30.2