From bed2d625561d8ab58625a4a79efc8f47de842da1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 17:16:24 +0100 Subject: fix bashisms --- bin/email2irc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/email2irc.sh') 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 -- cgit v1.2.3-54-g00ecf