diff options
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-x | scripts/auto-build/run-automated-builder | 2 |
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 } |