From a61f5f60bde2bcd8c2a107c8abd5f7f206d58310 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Tue, 5 Jul 2011 14:42:43 +0000 Subject: Add workaround to not send mail from schedbot user We will be able to remove it as soon as we will use an other send mail hook --- modules/subversion/templates/hook_commit.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'modules/subversion/templates') diff --git a/modules/subversion/templates/hook_commit.sh b/modules/subversion/templates/hook_commit.sh index 0fdfc3e5..22f31947 100644 --- a/modules/subversion/templates/hook_commit.sh +++ b/modules/subversion/templates/hook_commit.sh @@ -1,5 +1,20 @@ #!/bin/sh -for script in $0.d/*; do + +REP="$1" +TXN="$2" + +author=$(svnlook author -t "$TXN" "$REP") + +# This is here only the time we use hook_sendmail.pl +# We will be able to remove it when updating to a better send mail hook + +if [ "$author" = 'schedbot' ]; then + LIST= `ls $0.d/* | grep -v hook_sendmail.pl ` +else + LIST=`ls $0.d/*` +fi + +for script in $LIST; do if [ ! -x "$script" ]; then continue fi -- cgit v1.2.1