diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-27 17:16:24 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-27 17:16:24 +0100 |
commit | bed2d625561d8ab58625a4a79efc8f47de842da1 (patch) | |
tree | 2e0caf9bdbf6b011f864f4b3f4702b70e987b6c2 /bin/email2irc.sh | |
parent | 6902d71a925e460ffced79ad475b37352a74f4dc (diff) | |
download | jenkins.debian.net-bed2d625561d8ab58625a4a79efc8f47de842da1.tar.xz |
fix bashisms
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-x | bin/email2irc.sh | 6 |
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 |