From a31f626afda08e766a29e2e71a1e66c76bdd5a5f Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 3 Oct 2018 13:39:46 +0100 Subject: [PATCH] Avoid blank line --- src/freedombone-base-email | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 261e32ba8..b9bbebd3c 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1079,8 +1079,10 @@ function email_smtp_proxy_through_isp { echo '#'; echo '# see exim4_passwd_client(5) for more documentation'; echo '#'; - echo "${isp_smtp_domain}:${isp_smtp_username}:${isp_smtp_password}"; - echo "${isp_smtp_domain_alias_line}"; } > /etc/exim4/passwd.client + echo "${isp_smtp_domain}:${isp_smtp_username}:${isp_smtp_password}"; } > /etc/exim4/passwd.client + if [ "${isp_smtp_domain_alias_line}" ]; then + echo "${isp_smtp_domain_alias_line}" >> /etc/exim4/passwd.client + fi if ! grep -q 'dc_eximconfig_configtype=' /etc/exim4/update-exim4.conf.conf; then echo "dc_eximconfig_configtype='smarthost'" >> /etc/exim4/update-exim4.conf.conf else -- GitLab