summaryrefslogtreecommitdiffstats
path: root/cron-jobs/devlist-mailer
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/devlist-mailer')
-rwxr-xr-xcron-jobs/devlist-mailer10
1 files changed, 7 insertions, 3 deletions
diff --git a/cron-jobs/devlist-mailer b/cron-jobs/devlist-mailer
index b24d530..ca2e46b 100755
--- a/cron-jobs/devlist-mailer
+++ b/cron-jobs/devlist-mailer
@@ -6,9 +6,13 @@ LIST="arch-dev-public@archlinux.org"
#LIST="aaronmgriffin@gmail.com"
FROM="repomaint@archlinux.org"
-SUBJECT="Repository Maintenance $(date +"%d-%m-%Y %H:%M")"
-if [ $# -eq 1 ]; then
- SUBJECT="$1"
+SUBJECT="Repository Maintenance $(date +"%d-%m-%Y")"
+if [ $# -ge 1 ]; then
+ SUBJECT="$1 $(date +"%d-%m-%Y")"
+fi
+
+if [ $# -ge 2 ]; then
+ LIST="$2"
fi
stdin="$(cat)"