summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)"