From cccf608f6f7e75289593060154ab8b20337d98e1 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 22:27:08 -0400 Subject: [PATCH] update Signed-off-by: Jess Frazelle --- mailgun/sendemail | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mailgun/sendemail b/mailgun/sendemail index b979fed..cc20a76 100755 --- a/mailgun/sendemail +++ b/mailgun/sendemail @@ -8,6 +8,10 @@ if [[ -z "$MAILGUN_API_KEY" ]]; then exit 1 fi +if [[ ! -z "$MAILGUN_DOMAIN" ]]; then + MAILGUN_DOMAIN_NAME=$MAILGUN_DOMAIN +fi + if [[ -z "$MAILGUN_DOMAIN_NAME" ]]; then echo "Set the MAILGUN_DOMAIN_NAME env variable." exit 1