summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-02-18 17:14:25 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-02-18 17:14:25 +0100
commit7c13203815c834085df537ea92b163165a4a1d74 (patch)
tree5dec77731f03c49a1742af38b112ad45a961b89a
parentd22b09e8351ed59fbb7ffb9d4cb9d43280235485 (diff)
downloadarch-mirror-tools-7c13203815c834085df537ea92b163165a4a1d74.tar.gz
arch-mirror-tools-7c13203815c834085df537ea92b163165a4a1d74.tar.xz
Add alternate email to mail if set
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xbin/generate-mirror-mail.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/generate-mirror-mail.pl b/bin/generate-mirror-mail.pl
index bdd4234..d39fe1a 100755
--- a/bin/generate-mirror-mail.pl
+++ b/bin/generate-mirror-mail.pl
@@ -167,6 +167,7 @@ while (<STDIN>) {
my $sent_mail = 0;
my $to = $json->{admin_email};
+ $to .= ",".$json->{alternate_email} if $json->{alternate_email} ne "";
if (@out_of_sync) {
my %values = (