Skip to content

Commit

Permalink
fix: ubuntu's mail program uses -A not -a
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Oct 4, 2023
1 parent 3dc2fbe commit 0b1d74a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/archive-in-portico
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ echo $today > $datestampfile
grep -F "Total articles" $log | \
sed 's/Total //g;1 s/articles left after filtering/Past failures retried/;2 s/ left after filtering//g;2 s/articles/New &/' | \
mail -s "Portico archiving results for $today" \
-a $outputdir/latest-report.html -a $outputdir/rerun-report.html \
-a $log $EMAIL_SUCCESS
-A $outputdir/latest-report.html -A $outputdir/rerun-report.html \
-A $log $EMAIL_SUCCESS


# Post the report to Slack ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion scripts/upload-to-pmc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ else

# Send email about the results.
grep -F "Total articles" $log | sed 's/ left after filtering//g' | \
mail -s "PMC upload results for $today" -a $report -a $log $EMAIL_SUCCESS
mail -s "PMC upload results for $today" -A $report -A $log $EMAIL_SUCCESS

# Post the report to Slack.

Expand Down

0 comments on commit 0b1d74a

Please sign in to comment.