diff options
author | Erich Eckner <git@eckner.net> | 2019-10-09 10:49:06 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-09 10:51:05 +0200 |
commit | 2a32458d4c6ebfa63c393ac62a6a63bb01fb57d8 (patch) | |
tree | 445dd6e6fad67c09a86970d8eb27678abfaf5c92 | |
parent | bf50ea00d30dd212c8d7a372c5f274f530442e67 (diff) | |
download | sendmailadvanced-2a32458d4c6ebfa63c393ac62a6a63bb01fb57d8.tar.xz |
sendmailadvanced.conf: style
-rwxr-xr-x | sendmailadvanced.conf | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sendmailadvanced.conf b/sendmailadvanced.conf index 57e607f..de6deb9 100755 --- a/sendmailadvanced.conf +++ b/sendmailadvanced.conf @@ -20,14 +20,18 @@ body_header_hook() # things to put into foot of email body_footer_hook() { - if [ "$(whoami)" == "root" ] && [ "$1" == "last-backups" ]; then - echo "----------------------- Last Backups Begin -------------------------" - echo - last-backups - echo - echo "------------------------ Last Backups End --------------------------" - echo - return 0 + if [ "$(whoami)" == "root" ]; then + case "$1" in + 'last-backups') + echo "----------------------- Last Backups Begin -------------------------" + echo + last-backups + echo + echo "------------------------ Last Backups End --------------------------" + echo + return 0 + ;; + esac fi echo "Unknown footer-hook: '$1'" } |