Skip to content

Commit f06b4e4

Browse files
committed
Fix bug in which mail was never sent
The mail program needs to be given a body or it will simply wait forever for one to be typed in. A previous edit must have removed the line that provided the body to one of the mail sending commands.
1 parent 9f99f54 commit f06b4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/upload-to-pmc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ run_microarchiver -s pmc -C -d $afterdate -o $outputdir -r $report -@ $debuglog
9898
# Did we have validation failures? Notify someone specifically about that.
9999
lines=$(grep validation $report | wc -l)
100100
if [[ $lines -gt 0 ]]; then
101+
echo "The attached run log may provide clues about the errors." | \
101102
mail -s "PMC upload stopped $today due to errors in $lines articles" \
102103
-a $report -a $log $EMAIL_FAILURE
103104

0 commit comments

Comments
 (0)