summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-15 22:37:15 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-03-16 01:36:53 +0000
commit19e1a5b9c23e0954fe935c99c483fd104be608fb (patch)
tree353a795ed66f805127a1c437d36032ab3fb7d98a /scripts/build
parent47e136df6fa7cb7886140e4e0e5adf2943c21b41 (diff)
downloadvyos-live-build-19e1a5b9c23e0954fe935c99c483fd104be608fb.tar.gz
vyos-live-build-19e1a5b9c23e0954fe935c99c483fd104be608fb.zip
installer: tweak temp shell script construction
Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/installer_debian-installer12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer
index d6f380f87..92a68a5da 100755
--- a/scripts/build/installer_debian-installer
+++ b/scripts/build/installer_debian-installer
@@ -474,7 +474,11 @@ then
mkdir -p "binary/${INDICE_DIR}"
mv binary chroot/root
- echo "cd /root/binary && apt-ftparchive packages pool/${_ARCHIVE_AREA} > ${INDICE_DIR}/Packages" > chroot/binary.sh
+cat > chroot/binary.sh << EOF
+#!/bin/sh
+cd /root/binary
+apt-ftparchive packages "pool/${_ARCHIVE_AREA}" > "${INDICE_DIR}/Packages"
+EOF
Chroot chroot "sh binary.sh"
rm -f chroot/binary.sh
mv chroot/root/binary ./
@@ -657,7 +661,11 @@ then
cd "${OLDPWD}"
mv binary.udeb chroot/root
- echo "cd /root/binary.udeb && apt-ftparchive packages pool-udeb/main > ${UDEB_INDICE_DIR}/Packages" > chroot/binary.sh
+cat > chroot/binary.sh << EOF
+#!/bin/sh
+cd /root/binary.udeb
+apt-ftparchive packages "pool-udeb/main" > "${UDEB_INDICE_DIR}/Packages"
+EOF
Chroot chroot "sh binary.sh"
rm -f chroot/binary.sh
mv chroot/root/binary.udeb ./