From 948af778afcf6de30320e80bd738181e11112a50 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 4 Sep 2024 12:26:12 +0100 Subject: [PATCH] [Waste] Supply cobrands to email script. --- .../waste-email-bulky-payment-echo-update-failed | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/fixmystreet.com/waste-email-bulky-payment-echo-update-failed b/bin/fixmystreet.com/waste-email-bulky-payment-echo-update-failed index e690e6d5999..682adf04390 100755 --- a/bin/fixmystreet.com/waste-email-bulky-payment-echo-update-failed +++ b/bin/fixmystreet.com/waste-email-bulky-payment-echo-update-failed @@ -15,7 +15,7 @@ use FixMyStreet::Cobrand; use Getopt::Long::Descriptive; my ($opts, $usage) = describe_options( - '%c %o', + '%c %o ', ['nomail|n', 'do not actually send any email'], ['verbose|v', 'more verbose output'], ['help|h', "print usage message and exit" ], @@ -25,9 +25,8 @@ $usage->die if $opts->help; my $site = CronFns::site(FixMyStreet->config('BASE_URL')); CronFns::language($site); -my @monikers = qw/kingston sutton/; - -for (@monikers) { +# What is left on command line are the cobrands +for (@ARGV) { my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($_)->new; $cobrand->send_bulky_payment_echo_update_failed( { nomail => $opts->nomail,