diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-11-27 20:49:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-11-27 20:49:22 +0000 |
commit | e2c43c853670a7df90067ea07847aac78a13f17b (patch) | |
tree | 55f9091e47f6a8a3ffee74080928202a4e1d7416 /scripts/auto-build/mail-mingw-log-hack.sh | |
parent | 4263f7222a82f2722f99f51bf996ac52f79dffdd (diff) |
only send emails if RECIPIENT is defined
svn path=/trunk/; revision=9056
Diffstat (limited to 'scripts/auto-build/mail-mingw-log-hack.sh')
-rwxr-xr-x | scripts/auto-build/mail-mingw-log-hack.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |