summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-30 23:23:50 +0100
committerJoerg Jaspert <joerg@debian.org>2008-10-30 23:23:50 +0100
commitd92da93a0d26a860bc59178c6f0148cd5fbe6324 (patch)
treea8711cfa9553d6ae9520a34e787d0683265b7337 /etc
parentebed55041e17844e3ed7bf6cda1efe75f2d7ed8c (diff)
Add a few ""
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-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
}