From 19e1a5b9c23e0954fe935c99c483fd104be608fb Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 15 Mar 2020 22:37:15 +0000 Subject: [PATCH] installer: tweak temp shell script construction Gbp-Dch: Ignore --- scripts/build/installer_debian-installer | 12 ++++++++++-- 1 file 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 ./