diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-11-23 19:12:07 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-11-23 19:12:07 +0100 |
commit | ed1560ddde7a436e8a8e71f1817f9330d80105f4 (patch) | |
tree | 8c57f8b56a59d061c82ced19d0a94411b07a311f /bin/email2irc.sh | |
parent | 0bc45b02c12cfc2d437c7a81a8ee6cc0b4c78423 (diff) | |
download | jenkins.debian.net-ed1560ddde7a436e8a8e71f1817f9330d80105f4.tar.xz |
use colorit from dict package to color messages send to kgb-bot
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-x | bin/email2irc.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 81017910..f800921b 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -48,7 +48,8 @@ if [ "$VALID_MAIL" == "true" ] ; then echo $FIRST_LINE >> $LOGFILE if [ ! -z $CHANNEL ] ; then echo "#$CHANNEL: $SUBJECT. $FIRST_LINE" >> $LOGFILE - kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$SUBJECT. $FIRST_LINE" && echo "kgb informed successfully." >> $LOGFILE + MESSAGE=$(echo "$SUBJECT. $FIRST_LINE" | colorit -c /etc/colorit.conf ) + kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$MESSAGE" && echo "kgb informed successfully." >> $LOGFILE echo >> $LOGFILE else echo "But no irc channel detected." >> $LOGFILE |