catalyst-auto: add missing local body in send_email

This commit is contained in:
Mike Frysinger 2016-12-08 23:54:14 -05:00
parent ef83c934a8
commit e98ae4f69e

View file

@ -59,6 +59,7 @@ send_email() {
local subject="${EMAIL_SUBJECT_PREPEND} $1" local subject="${EMAIL_SUBJECT_PREPEND} $1"
local message=$2 local message=$2
local logfile=$3 local logfile=$3
local body
if [ -n "${logfile}" ]; then if [ -n "${logfile}" ]; then
body=$(printf '%b\n\n\n' "${message}"; tail -n 200 "${logfile}"; printf '\n\n\nFull build log at %s\n' "${logfile}") body=$(printf '%b\n\n\n' "${message}"; tail -n 200 "${logfile}"; printf '\n\n\nFull build log at %s\n' "${logfile}")