Commit 3a3ea8c5 authored by UltimateByte's avatar UltimateByte Committed by GitHub
Browse files

fix sent mail log having no line jump

parent 6f7ce2e7
......@@ -60,14 +60,14 @@ fn_logecho(){
fn_echo_form
echo -e "${echoform}"
echo -e "${echoform}" >> "${log}"
currlog="${currlog}$(echo -e "${echoform}\n")"
currlog="${currlog}${echoform}\n"
}
# Send mail alert
fn_mail_alert(){
if [ "${mailalert}" == "yes" ]; then
fn_logecho "[INFO] Sending mail alert to: ${mailaddress}"
echo "${currlog}" | mail -s "$(hostname -s) - ${pidname} - ${portcheck} killed" ${mailaddress}
echo -e "${currlog}" | mail -s "$(hostname -s) - ${pidname} - ${portcheck} killed" ${mailaddress}
fi
# Since this is the last action that should occur
exit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment