summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-24 08:47:42 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:27 +0100
commitf2734daf0a9519db6b303683d3ac413a20d56e2a (patch)
tree6d9d0c85e7141243e0b40adcd847d1cc7c479448 /debian
parent81a76d4adc812c16be8238fedda25bd43ab3a379 (diff)
downloadvyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.tar.gz
vyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.zip
Replacing backticks with POSIX expression.
Diffstat (limited to 'debian')
-rw-r--r--debian/cron.daily12
-rw-r--r--debian/default4
2 files changed, 8 insertions, 8 deletions
diff --git a/debian/cron.daily b/debian/cron.daily
index a5febe540..c26168a31 100644
--- a/debian/cron.daily
+++ b/debian/cron.daily
@@ -35,7 +35,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) ${HOSTNAME} live-helper: begin daily build." >> /var/log/live
for ARCHITECTURE in ${ARCHITECTURES}
do
@@ -49,13 +49,13 @@ do
mkdir -p "${TEMPDIR}"/debian-live
cd "${TEMPDIR}"/debian-live
- echo "Begin: `date -R`" > "${TEMPDIR}"/debian-live/log.txt
+ echo "Begin: $(date -R)" > "${TEMPDIR}"/debian-live/log.txt
# Generating images
lh_config -b iso -s tar --distribution ${DISTRIBUTION} --packages-lists ${PACKAGES_LIST} --mirror-bootstrap ${MIRROR_BOOTSTRAP} --mirror-bootstrap-security ${MIRROR_BOOTSTRAP_SECURITY} --mirror-binary ${MIRROR_BINARY} --mirror-binary-security ${MIRROR_BINARY_SECURITY} --source enabled ${OPTIONS}
lh_build >> "${TEMPDIR}"/debian-live/log.txt 2>&1
- echo "End: `date -R`" >> "${TEMPDIR}"/debian-live/log.txt
+ echo "End: $(date -R)" >> "${TEMPDIR}"/debian-live/log.txt
fi
if [ -f "${TEMPDIR}"/debian-live/binary.iso ] && [ -f "${TEMPDIR}"/debian-live/source.tar ]
@@ -90,13 +90,13 @@ do
mkdir -p "${TEMPDIR}"/debian-live
cd "${TEMPDIR}"/debian-live
- echo "Begin: `date -R`" > "${TEMPDIR}"/debian-live/log.txt
+ echo "Begin: $(date -R)" > "${TEMPDIR}"/debian-live/log.txt
# Generating images
lh_config -b usb-hdd -s tar --distribution ${DISTRIBUTION} --packages-lists ${PACKAGES_LIST} --mirror-bootstrap ${MIRROR_BOOTSTRAP} --mirror-bootstrap-security ${MIRROR_BOOTSTRAP_SECURITY} --mirror-binary ${MIRROR_BINARY} --mirror-binary-security ${MIRROR_BINARY_SECURITY} --source disabled ${OPTIONS}
lh_build >> "${TEMPDIR}"/debian-live/log.txt 2>&1
- echo "End: `date -R`" >> "${TEMPDIR}"/debian-live/log.txt
+ echo "End: $(date -R)" >> "${TEMPDIR}"/debian-live/log.txt
fi
if [ -f "${TEMPDIR}"/debian-live/binary.img ]
@@ -151,4 +151,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) ${HOSTNAME} live-helper: end daily build." >> /var/log/live
diff --git a/debian/default b/debian/default
index 0ca9a272c..d92aae457 100644
--- a/debian/default
+++ b/debian/default
@@ -2,13 +2,13 @@
AUTOBUILD="disabled"
-DATE="`date +%Y%m%d`"
+DATE="$(date +%Y%m%d)"
DESTDIR="/srv/debian-live"
TEMPDIR="/srv/tmp/live-helper"
OPTIONS="--binary-indices disabled"
-ARCHITECTURES="`dpkg --print-architecture`"
+ARCHITECTURES="$(dpkg --print-architecture)"
DISTRIBUTIONS="sid"
MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/"
MIRROR_BOOTSTRAP_SECURITY="http://security.debian.org/"