Improving check for syslinux templates by checking actual content, not just the directory.

This commit is contained in:
Daniel Baumann 2009-03-15 07:25:06 +01:00
parent fb314b164f
commit 1457161934
1 changed files with 2 additions and 2 deletions

View File

@ -191,11 +191,11 @@ Copy_syslinux_templates ()
esac esac
fi fi
if [ -d "${TEMPLATES}"/"${LH_LANGUAGE}" ] if ls "${TEMPLATES}/${LH_LANGUAGE}"/* > /dev/null 2>&1
then then
cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH} cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH}
else else
if [ -d "${TEMPLATES}"/en/* ] if ls "${TEMPLATES}"/en/* > /dev/null 2>&1
then then
cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH} cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
fi fi