diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-29 13:30:00 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-29 13:30:00 -0800 |
commit | 81efd3d8cd39d07930b18dcd8f904153500bfbf3 (patch) | |
tree | 14cf71e78182f4d4ec03ce7223c22dcaa633e03e | |
parent | f0d817a0deb150f576ee7733f5be40bd981f81cf (diff) |
Allow devlist-mailer to send to alternate addresses
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | cron-jobs/devlist-mailer | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer index b24d530..671cbbb 100755 --- a/cron-jobs/devlist-mailer +++ b/cron-jobs/devlist-mailer @@ -7,8 +7,12 @@ LIST="arch-dev-public@archlinux.org" FROM="repomaint@archlinux.org" SUBJECT="Repository Maintenance $(date +"%d-%m-%Y %H:%M")" -if [ $# -eq 1 ]; then - SUBJECT="$1" +if [ $# -ge 1 ]; then + SUBJECT="$1 $(date +"%d-%m-%Y %H:%M")" +fi + +if [ $# -ge 2 ]; then + LIST="$2" fi stdin="$(cat)" |