diff options
author | Daniel Baumann <daniel@debian.org> | 2009-03-15 07:25:06 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:43 +0100 |
commit | 14571619340bd32da269af6e2cfdebe404877a7a (patch) | |
tree | 377027abdafaf7f06f0b17fb7d6207d63a304a43 /helpers | |
parent | fb314b164ff32a09b0f01996f414a50041c87fe6 (diff) | |
download | vyos-live-build-14571619340bd32da269af6e2cfdebe404877a7a.tar.gz vyos-live-build-14571619340bd32da269af6e2cfdebe404877a7a.zip |
Improving check for syslinux templates by checking actual content, not just the directory.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_syslinux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index 94fae106d..310b879af 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 |