diff options
-rwxr-xr-x | sendmailadvanced.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sendmailadvanced.in b/sendmailadvanced.in index 8f291a7..218e4a1 100755 --- a/sendmailadvanced.in +++ b/sendmailadvanced.in @@ -209,9 +209,12 @@ fi body_footer_hook "${hookParam}" done ) | \ - ( - ${encrypt} && gpg -e -a -s -r $(gpgAdressaten) || cat - ) + if ${encrypt} + then + gpg -e -a -s -r $(gpgAdressaten) + else + cat + fi ) | \ ( if [ -z "${datei}" ] |