aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/run-automated-builder
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-27 20:49:22 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-27 20:49:22 +0000
commite2c43c853670a7df90067ea07847aac78a13f17b (patch)
tree55f9091e47f6a8a3ffee74080928202a4e1d7416 /scripts/auto-build/run-automated-builder
parent4263f7222a82f2722f99f51bf996ac52f79dffdd (diff)
only send emails if RECIPIENT is defined
svn path=/trunk/; revision=9056
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-xscripts/auto-build/run-automated-builder2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder
index 64edb375..3f66a1ea 100755
--- a/scripts/auto-build/run-automated-builder
+++ b/scripts/auto-build/run-automated-builder
@@ -36,8 +36,10 @@ run_build_script ()
# send status report if something failed
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 "${SUBJECT}" ${RECIPIENT}
+ fi
fi
}