diff options
Diffstat (limited to 'etc/common')
-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 } |