summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-27 17:16:24 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-27 17:16:24 +0100
commitbed2d625561d8ab58625a4a79efc8f47de842da1 (patch)
tree2e0caf9bdbf6b011f864f4b3f4702b70e987b6c2 /bin/email2irc.sh
parent6902d71a925e460ffced79ad475b37352a74f4dc (diff)
downloadjenkins.debian.net-bed2d625561d8ab58625a4a79efc8f47de842da1.tar.xz
fix bashisms
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 25f76fe3..20c0a966 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -24,7 +24,7 @@ HEADER=true
VALID_MAIL=false
MY_LINE=""
while read line ; do
- if [ "$HEADER" == "true" ] ; then
+ if [ "$HEADER" = "true" ] ; then
# check if email header ends
if [[ $line =~ ^$ ]] ; then
HEADER=false
@@ -55,7 +55,7 @@ while read line ; do
fi
fi
# catch first line of email body (to send to IRC later)
- if [ "$HEADER" == "false" ] && [ -z "$MY_LINE" ] ; then
+ if [ "$HEADER" = "false" ] && [ -z "$MY_LINE" ] ; then
MY_LINE=$line
debug123 "#1" MY_LINE $MY_LINE
# if this is a multipart email it comes from the email extension plugin
@@ -76,7 +76,7 @@ fi
debug123 "#5" MY_LINE $MY_LINE
# only send notifications for valid emails
-if [ "$VALID_MAIL" == "true" ] ; then
+if [ "$VALID_MAIL" = "true" ] ; then
echo -e "----------\nvalid email\n-----------" >> $LOGFILE
date >> $LOGFILE
echo "Job: $JENKINS_JOB" >> $LOGFILE