e44910ae7f8158bb03d14b71310c3fc11eb4966e galt Mon Jun 26 23:26:54 2023 -0700 sendLogEmail.pl authorFilter contains unwanted newline at end, add chomp statement to remove it, makes shell happy. diff --git src/utils/qa/weeklybld/sendLogEmail.pl src/utils/qa/weeklybld/sendLogEmail.pl index 5340865..20d3bf6 100755 --- src/utils/qa/weeklybld/sendLogEmail.pl +++ src/utils/qa/weeklybld/sendLogEmail.pl @@ -7,30 +7,31 @@ if ($argc != 2) { printf STDERR "usage: sendLogEmail.pl \$LASTNN \$BRANCHNN\n"; exit 255; } my $lastNN = shift; my $branchNN = shift; my $buildMeisterEmail = $ENV{'BUILDMEISTEREMAIL'} . ',clayfischer@ucsc.edu,lrnassar@ucsc.edu'; my $returnEmail = ' lrnassar@ucsc.edu'; my @victims; my %victimEmail; my $authorFilter = `getent group kentcommit | cut -d':' -f4 | sed -e 's/^\\|,/ --author=/g'`; +chomp $authorFilter; open (FH, "git log v${lastNN}_base..v${branchNN}_base --name-status ${authorFilter} | grep Author | sort | uniq|") or die "can not git log v${lastNN}_base..v${branchNN}_base --name-status"; while (my $line = ) { chomp $line; if ($line =~ m/^Author:/) { $line =~ s/Author: //; my @b = split('\s+', $line); my $sizeB = scalar(@b); my $email = $b[$sizeB-1]; $email =~ s/