fix: remove useless echo, quote eval

This commit is contained in:
Honza Hommer 2019-05-26 16:08:00 +02:00
parent 5323d17c31
commit 0c2ab683d5
No known key found for this signature in database
GPG Key ID: F1A1FA427709F5EF

View File

@ -62,7 +62,7 @@ mail_send() {
contenttype="text/plain; charset=utf-8"
subject="=?UTF-8?B?$(echo "$_subject" | _base64)?="
result=$({ echo "$(_mail_body)" | eval $(_mail_cmnd); } 2>&1)
result=$({ _mail_body | eval "$(_mail_cmnd)"; } 2>&1)
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then