From 8a1cbafd4a02cc72ed9b45050a5afc4e583e4274 Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 13 Apr 2010 20:02:44 +0200 Subject: [PATCH] pinp post-receive-xmpp to only use one sendxmpp invocation --- scripts/post-receive-xmpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) mode change 100644 => 100755 scripts/post-receive-xmpp diff --git a/scripts/post-receive-xmpp b/scripts/post-receive-xmpp old mode 100644 new mode 100755 index 69cf8c159..c2caa9176 --- a/scripts/post-receive-xmpp +++ b/scripts/post-receive-xmpp @@ -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()