summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/common4
1 files changed, 2 insertions, 2 deletions
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
}