summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-29 22:30:00 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-29 22:30:00 +0100
commit81efd3d8cd39d07930b18dcd8f904153500bfbf3 (patch)
tree14cf71e78182f4d4ec03ce7223c22dcaa633e03e
parentf0d817a0deb150f576ee7733f5be40bd981f81cf (diff)
downloaddbscripts-81efd3d8cd39d07930b18dcd8f904153500bfbf3.tar.gz
dbscripts-81efd3d8cd39d07930b18dcd8f904153500bfbf3.tar.xz
Allow devlist-mailer to send to alternate addresses
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/devlist-mailer8
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)"