From 88e07b21a326aeceee797003729100726b4c5b35 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 Oct 2019 09:34:37 +0200 Subject: sendmailadvanced.in: style --- sendmailadvanced.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sendmailadvanced.in b/sendmailadvanced.in index 62ea21e..4afcf05 100755 --- a/sendmailadvanced.in +++ b/sendmailadvanced.in @@ -270,9 +270,9 @@ fi if ${encrypt}; then boundary="" while - echo "${body}" | \ - grep -q "${boundary}"; do - boundary="$(gen_boundary)" + printf '%s\n' "${body}" | \ + grep -qF "${boundary}"; do + boundary=$(gen_boundary) done echo 'MIME-Version: 1.0' @@ -293,8 +293,9 @@ fi echo 'Content-Disposition: inline; filename="encrypted.asc"' fi - echo "${zeile}" - echo "${body}" + printf '%s\n' \ + "${zeile}" \ + "${body}" if ${encrypt}; then echo '' -- cgit v1.2.3-70-g09d2