From 14571619340bd32da269af6e2cfdebe404877a7a Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 15 Mar 2009 07:25:06 +0100
Subject: Improving check for syslinux templates by checking actual content,
 not just the directory.

---
 helpers/lh_binary_syslinux | 4 ++--
 1 file 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
-- 
cgit v1.0