From 8b38c181d30ae38e5e9f5ba769f72d52847cb775 Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Thu, 15 Feb 2018 16:53:48 +0100 Subject: [PATCH] Correct the removal of existing files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't remove anymore the debian installer directory ! Some others scripts might write some data (eg. make_debian_initrd_with_firmware.sh) Remove the sample menu.cfg. --- scripts/download_debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download_debian.sh b/scripts/download_debian.sh index ce6c5b0..843310a 100755 --- a/scripts/download_debian.sh +++ b/scripts/download_debian.sh @@ -18,8 +18,8 @@ DEBIAN_INSTALLER_DIR="${TFTP_DIRECTORY}/installer/debian" DEBIAN_CONFIG_PXE="${DEBIAN_INSTALLER_DIR}/menu.cfg.example" # Create directories and config file -rm -rf "${DEBIAN_INSTALLER_DIR}" mkdir -p "${DEBIAN_INSTALLER_DIR}" +rm -f "${DEBIAN_CONFIG_PXE}" touch "${DEBIAN_CONFIG_PXE}" for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version