From 2c2d1e10c4389becf9022970fbd0824b5f77ff94 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Wed, 8 Jul 2009 20:54:47 +0200
Subject: Avoid using HOSTNAME variable in order to not get false positives
 from checkbashism.

---
 debian/live-helper.cron.daily | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/live-helper.cron.daily b/debian/live-helper.cron.daily
index a146f09..0882de4 100644
--- a/debian/live-helper.cron.daily
+++ b/debian/live-helper.cron.daily
@@ -3,6 +3,7 @@
 set -e
 
 BUILD="daily"
+HOST="$(hostname)"
 
 # Checking for live-helper availability
 if [ ! -x /usr/bin/lh_config ]
@@ -35,7 +36,7 @@ else
 	exit 1
 fi
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: begin daily build." >> /var/log/live
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: begin daily build." >> /var/log/live
 
 for ARCHITECTURE in ${ARCHITECTURES}
 do
@@ -151,4 +152,4 @@ done
 rm -f "${DESTDIR}"/"${BUILD}"-builds/current
 ln -s ${DATE} "${DESTDIR}"/"${BUILD}"-builds/current
 
-echo "$(date +%b\ %d\ %H:%M:%S) ${HOSTNAME} live-helper: end daily build." >> /var/log/live
+echo "$(date +%b\ %d\ %H:%M:%S) ${HOST} live-helper: end daily build." >> /var/log/live
-- 
cgit v1.0