From fd00bd45a583b68e059628e732bbb4fbda8a935b Mon Sep 17 00:00:00 2001 From: Chris Dzombak Date: Tue, 24 Oct 2023 11:23:14 -0400 Subject: [PATCH] don't try to reuse cron's MAILTO env variable --- README.md | 2 +- runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 48aa51c..a1f126f 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ If you plan to use the `RUNNER_OUTFD_PID` and `RUNNER_OUTFD_STD[OUT|ERR]` variab - `-mail-tab-char string`: Replace tab characters in emailed output by this string. - Can also be set by the `RUNNER_MAIL_TAB_CHAR` environment variable; this flag overrides the environment variable. - `-mailto string`: Send an email to the given address if the program fails or its output would otherwise be printed per `-healthy-exit`/`-print-if-[not]-match`/`-always-print`. - - Can also be set by the `MAILTO` environment variable; this flag overrides the environment variable. + - Can also be set by the `RUNNER_MAILTO` environment variable; this flag overrides the environment variable. - `-smtp-host string`: SMTP server hostname. - Can also be set by the `RUNNER_SMTP_HOST` environment variable; this flag overrides the environment variable. - `-smtp-pass string`: Password for SMTP authentication. diff --git a/runner.go b/runner.go index a09ea1e..fc16360 100644 --- a/runner.go +++ b/runner.go @@ -21,7 +21,7 @@ var version = "" // Environment variables supported by runner: const ( - MailToEnvVar = "MAILTO" + MailToEnvVar = "RUNNER_MAILTO" MailFromEnvVar = "RUNNER_MAIL_FROM" SMTPUserEnvVar = "RUNNER_SMTP_USER" SMTPPassEnvVar = "RUNNER_SMTP_PASS"