summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
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