diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-02-18 17:14:25 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-02-18 17:14:25 +0100 |
commit | 7c13203815c834085df537ea92b163165a4a1d74 (patch) | |
tree | 5dec77731f03c49a1742af38b112ad45a961b89a /bin | |
parent | d22b09e8351ed59fbb7ffb9d4cb9d43280235485 (diff) | |
download | arch-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>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/generate-mirror-mail.pl | 1 |
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 = ( |