summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-03-15 07:25:06 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:43 +0100
commit14571619340bd32da269af6e2cfdebe404877a7a (patch)
tree377027abdafaf7f06f0b17fb7d6207d63a304a43
parentfb314b164ff32a09b0f01996f414a50041c87fe6 (diff)
downloadlive-build-14571619340bd32da269af6e2cfdebe404877a7a.zip
live-build-14571619340bd32da269af6e2cfdebe404877a7a.tar.gz
Improving check for syslinux templates by checking actual content, not just the directory.
-rwxr-xr-xhelpers/lh_binary_syslinux4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 94fae10..310b879 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -191,11 +191,11 @@ Copy_syslinux_templates ()
esac
fi
- if [ -d "${TEMPLATES}"/"${LH_LANGUAGE}" ]
+ if ls "${TEMPLATES}/${LH_LANGUAGE}"/* > /dev/null 2>&1
then
cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH}
else
- if [ -d "${TEMPLATES}"/en/* ]
+ if ls "${TEMPLATES}"/en/* > /dev/null 2>&1
then
cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
fi