From 194bd9317fd54b8dcdab5f2abe91deccaaea0584 Mon Sep 17 00:00:00 2001 From: Daniel Baumann <daniel@debian.org> Date: Tue, 12 Aug 2008 16:30:41 +0200 Subject: Using $HOST rather than $HOSTNAME to avoid false positive in checkbashisms. --- examples/cron/manpages.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/cron/manpages.sh') diff --git a/examples/cron/manpages.sh b/examples/cron/manpages.sh index da58d9410..00f49dfcd 100755 --- a/examples/cron/manpages.sh +++ b/examples/cron/manpages.sh @@ -9,6 +9,7 @@ TEMPDIR="/srv/tmp/manpages" SERVER="/srv/debian-live/www/other/manpages" DATE_START="$(date -R)" +HOST="$(hostname)" # Checking lock file if [ -f "${SERVER}"/lock ] @@ -29,7 +30,7 @@ trap "test -f ${SERVER}/lock && rm -f ${SERVER}/lock; exit 0" 0 HUP INT QUIT KIL # Creating lock file echo "${DATE_START}" > "${SERVER}"/lock -echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: begin manpage build." >> /var/log/live +echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: begin manpage build." >> /var/log/live # Remove old manpages rm -f "${SERVER}"/*.html @@ -96,4 +97,4 @@ EOF # Removing build directory rm -rf "${TEMPDIR}" -echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: end manpage build." >> /var/log/live +echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: end manpage build." >> /var/log/live -- cgit v1.2.3