From 80087f3c38145894e0f16cc1df84a8f4fb05d6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 16 Mar 2019 20:09:33 +0100 Subject: [PATCH] small display fix --- evomaintenance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evomaintenance.sh b/evomaintenance.sh index 0eb33b0..c1487a3 100755 --- a/evomaintenance.sh +++ b/evomaintenance.sh @@ -179,7 +179,7 @@ hook_commit() { if [ -n "${GIT_COMMITS}" ]; then if [ "${VERBOSE}" = "1" ]; then - printf "\n\n********** Commits ****************\n%s\n***********************************\n" "${GIT_COMMITS}" + printf "\n********** Commits ****************\n%s\n***********************************\n" "${GIT_COMMITS}" fi if [ "${DRY_RUN}" != "1" ]; then echo "${GIT_COMMITS}" >> "${LOGFILE}" @@ -193,7 +193,7 @@ hook_db() { PG_QUERY="INSERT INTO evomaint(hostname,userid,ipaddress,begin_date,end_date,details) VALUES ('${HOSTNAME}','${USER}','${IP}','${BEGIN_DATE}',now(),'${SQL_DETAILS}')" if [ "${VERBOSE}" = "1" ]; then - printf "\n\n********** DB query **************\n%s\n***********************************\n" "${PG_QUERY}" + printf "\n********** DB query **************\n%s\n***********************************\n" "${PG_QUERY}" fi if [ "${DRY_RUN}" != "1" ]; then echo "${PG_QUERY}" | psql "${PGDB}" "${PGTABLE}" -h "${PGHOST}" @@ -218,7 +218,7 @@ hook_mail() { /usr/share/scripts/evomaintenance.tpl) if [ "${VERBOSE}" = "1" ]; then - printf "\n\n********** Mail *******************\n%s\n***********************************\n" "${MAIL_CONTENT}" + printf "\n********** Mail *******************\n%s\n***********************************\n" "${MAIL_CONTENT}" fi if [ "${DRY_RUN}" != "1" ]; then echo "${MAIL_CONTENT}" | ${SENDMAIL_BIN} -oi -t -f "${FROM}"