From 9e7f1b279e2181f3017426928184a359f6623b1c Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Sun, 30 Aug 2015 02:57:07 +0200 Subject: [PATCH] Added missing bracket and linebreak The bracket was apparently accidently removed in e943e24e304927e88c1f966723c1c55fbdd513cb . --- functions/fn_email | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/fn_email b/functions/fn_email index e39970d6e..e5ea2ed04 100644 --- a/functions/fn_email +++ b/functions/fn_email @@ -8,6 +8,7 @@ local modulename="Email" fn_printdots "Sending notification to ${email}" +echo -en "\n" fn_details_distro { echo -e "========================================\n${servicename} details\n========================================\n" @@ -27,7 +28,7 @@ fn_details_distro echo -e "========================================\nLogs\n========================================\n" echo -e "Script log\n===================\n" fn_details -|sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"|tee "${scriptlogdir}/${servicename}-email.log" +}|sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"|tee "${scriptlogdir}/${servicename}-email.log" tail -25 "${scriptlog}" >> "${emaillog}" if [ ! -z "${consolelog}" ]; then echo -e "\n\nConsole log\n====================\n" >> "${emaillog}" @@ -41,4 +42,4 @@ mail -s "${subject}" ${email} < "${emaillog}" fn_printok "Sending notification to ${email}" fn_scriptlog "Sent notification to ${email}" sleep 1 -echo -en "\n" \ No newline at end of file +echo -en "\n"