summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-07-08 20:54:47 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:45 +0100
commit2c2d1e10c4389becf9022970fbd0824b5f77ff94 (patch)
treec65cd4a432a34f8ab04769898e4c1603a1276d75 /debian
parent07d089fa5561499e150b79e7a0701d5a9c3a897f (diff)
downloadvyos-live-build-2c2d1e10c4389becf9022970fbd0824b5f77ff94.tar.gz
vyos-live-build-2c2d1e10c4389becf9022970fbd0824b5f77ff94.zip
Avoid using HOSTNAME variable in order to not get false positives from checkbashism.
Diffstat (limited to 'debian')
-rw-r--r--debian/live-helper.cron.daily5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/live-helper.cron.daily b/debian/live-helper.cron.daily
index a146f0981..0882de491 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