Commit 45f54b80 authored by Holger Levsen's avatar Holger Levsen

reproducible Archlinux: shorten irc message if longer then 256 chars

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent b61b2ee8
......@@ -51,6 +51,10 @@ done
echo
if [ ! -z "$SUCCESS" ] ; then
MESSAGE="Manually scheduled in $REPOSITORY:$SUCCESS"
# shorten irc message if longer then 256 characters
if [ ${#MESSAGE} -gt 256 ] ; then
MESSAGE="${MESSAGE:0:256}✂…"
fi
echo "$MESSAGE"
irc_message archlinux-reproducible "$MESSAGE"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment