]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
Added exit condition for autotest_result_mail.sh
authorMarjan Schiller <marjan.schiller@profitbricks.com>
Wed, 12 Jun 2013 15:20:17 +0000 (17:20 +0200)
committerMarjan Schiller <marjan.schiller@profitbricks.com>
Wed, 12 Jun 2013 15:20:17 +0000 (17:20 +0200)
autotest_result_mail.sh

index 066c9b4457f109df794e398539599461462c6258..18cdf2a650825ccccc778ccc008ab263f994432d 100755 (executable)
@@ -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."