diff options
author | Raphael Geissert <geissert@debian.org> | 2012-12-14 12:25:49 -0600 |
---|---|---|
committer | Simon Paillard <spaillard@debian.org> | 2012-12-17 19:47:16 +0100 |
commit | bc66367f5a6b9e9e3be31a913981f428b44fa98d (patch) | |
tree | 6323e2d47b0ca5a645ce2f8da766b21ebd112b81 /etc | |
parent | 1179550f15209ad663168c5c3d7f66477524a7fc (diff) |
Actually send emails on errors and new versions
Signed-off-by: Raphael Geissert <geissert@debian.org>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/common | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -181,7 +181,7 @@ log () { # to the address configured in MAILTO (if non-empty) error () { log "$@" - if [ -z "${MAILTO}" ]; then + if [ -n "${MAILTO}" ]; then echo "$@" | mail -e -s "[$PROGRAM@$(hostname -s)] ERROR [$$]" ${MAILTO} fi } |