From e2c43c853670a7df90067ea07847aac78a13f17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 27 Nov 2007 20:49:22 +0000 Subject: only send emails if RECIPIENT is defined svn path=/trunk/; revision=9056 --- scripts/auto-build/mail-mingw-log-hack.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/auto-build/mail-mingw-log-hack.sh') diff --git a/scripts/auto-build/mail-mingw-log-hack.sh b/scripts/auto-build/mail-mingw-log-hack.sh index c0cf45b3..3e39cf71 100755 --- a/scripts/auto-build/mail-mingw-log-hack.sh +++ b/scripts/auto-build/mail-mingw-log-hack.sh @@ -11,7 +11,9 @@ SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` for logfile in `ls -1 /var/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt`; do completion_test=`tail -1 ${logfile}` if [ "x${completion_test}" != "xSUCCESS" ]; then + if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" tail -20 ${logfile} | mail -s "autobuild: $logfile" ${RECIPIENT} + fi fi done -- cgit v1.2.1