From fb314b164ff32a09b0f01996f414a50041c87fe6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 12 Mar 2009 19:26:10 +0100 Subject: Only trying to handle syslinux help screens if they are actually available. --- helpers/lh_binary_syslinux | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index 42eb1d519..94fae106d 100755 --- a/helpers/lh_binary_syslinux +++ b/helpers/lh_binary_syslinux @@ -201,24 +201,33 @@ Copy_syslinux_templates () fi fi - for FILE in ${SCREEN_PATH}/*.live - do - mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .live) - done - - if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ] + if ls ${SCREEN_PATH}/*.live > /dev/null 2>&1 then - for FILE in ${SCREEN_PATH}/*.install + for FILE in ${SCREEN_PATH}/*.live do - mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install) + mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .live) done + fi + + if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ] + then + if ls ${SCREEN_PATH}/*.install > /dev/null 2>&1 + then + for FILE in ${SCREEN_PATH}/*.install + do + mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install) + done + fi case "${LH_ARCHITECTURE}" in amd64|i386|powerpc) - for FILE in ${SCREEN_PATH}/*.install.g-i - do - mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i) - done + if ls ${SCREEN_PATH}/*.install.g-i > /dev/null 2>&1 + then + for FILE in ${SCREEN_PATH}/*.install.g-i + do + mv ${FILE} $(dirname ${FILE})/$(basename ${FILE} .install.g-i) + done + fi ;; *) -- cgit v1.2.3