pinp post-receive-xmpp to only use one sendxmpp invocation

This commit is contained in:
Sven 2010-04-13 20:02:44 +02:00
parent bd45209392
commit 8a1cbafd4a
1 changed files with 3 additions and 5 deletions

8
scripts/post-receive-xmpp Normal file → Executable file
View File

@ -51,6 +51,8 @@
# give information for debugging.
#
export HOME=/var/git
# ---------------------------- Functions
#
@ -611,11 +613,7 @@ send_mail()
# Strange, sendxmpp wants latin1:
msg=$(echo "$1"|iconv -f utf8 -t latin1)
subject=$(echo "$msg"|head -n 1)
for jid in $recipients
do
echo -n "$msg" | sendxmpp $jid -s "$subject"
echo "Notification sent to $jid"
done
echo -n "$msg" | sendxmpp -s "$subject" $recipients
}
# ---------------------------- main()