From: Marjan Schiller Date: Wed, 12 Jun 2013 15:20:17 +0000 (+0200) Subject: Added exit condition for autotest_result_mail.sh X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a8df7c0bdb90f6ee5f35708d8bc1bed129ae9c3f;p=profitbricks%2Fjenkins-build-scripts.git Added exit condition for autotest_result_mail.sh --- diff --git a/autotest_result_mail.sh b/autotest_result_mail.sh index 066c9b4..18cdf2a 100755 --- a/autotest_result_mail.sh +++ b/autotest_result_mail.sh @@ -13,6 +13,7 @@ echo # if [ ${AUTOTEST_SEND_RESULT_MAIL} == "false" ]; then echo "No result mail will be send." + exit 0 fi # @@ -40,7 +41,7 @@ echo "Mailcontent: $MAIL_CONTENT" # # send announcement mail # -cat "$MAIL_CONTENT" | /usr/sbin/sendmail -t +echo "$MAIL_CONTENT" | /usr/sbin/sendmail -t echo echo "Ok, announcement mail sent."