diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:23:50 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:23:50 +0100 |
commit | d92da93a0d26a860bc59178c6f0148cd5fbe6324 (patch) | |
tree | a8711cfa9553d6ae9520a34e787d0683265b7337 | |
parent | ebed55041e17844e3ed7bf6cda1efe75f2d7ed8c (diff) |
Add a few ""
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rw-r--r-- | etc/common | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -113,7 +113,7 @@ callback () { # # Set $PROGRAM to a string to have it added to the output. log () { - if [ -z ${PROGRAM} ]; then + if [ -z "${PROGRAM}" ]; then echo "$(date +"%b %d %H:%M:%S") $(hostname -s) [$$] $@" else echo "$(date +"%b %d %H:%M:%S") $(hostname -s) ${PROGRAM}[$$]: $@" @@ -124,7 +124,7 @@ log () { # to the address configured in MAILTO (if non-empty) error () { log "$@" - if [ -z ${MAILTO} ]; then + if [ -z "${MAILTO}" ]; then echo "$@" | mail -e -s "[$PROGRAM@$(hostname -s)] ERROR [$$]" ${MAILTO} fi } |