From d92da93a0d26a860bc59178c6f0148cd5fbe6324 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Oct 2008 23:23:50 +0100 Subject: Add a few "" Signed-off-by: Joerg Jaspert --- etc/common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/common b/etc/common index 4bee247..3120bf8 100644 --- a/etc/common +++ b/etc/common @@ -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 } -- cgit v1.2.3