summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-15 09:34:37 +0200
committerErich Eckner <git@eckner.net>2019-10-15 09:34:37 +0200
commit88e07b21a326aeceee797003729100726b4c5b35 (patch)
tree213f16144e9c8315ef9fac006d1b919b6b40fd5f
parent56c441d127e859ed927c014609a24936d4a291f3 (diff)
downloadsendmailadvanced-88e07b21a326aeceee797003729100726b4c5b35.tar.xz
sendmailadvanced.in: style
-rwxr-xr-xsendmailadvanced.in11
1 files 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 ''