Subject: Only trying to copy syslinux english templates if they are actually available.

From: Daniel Baumann <[email-masked]>
Date: Thu, 12 Mar 2009 19:00:50 +0100

---
 helpers/lh_binary_syslinux | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index f5dea99..42eb1d5 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -195,7 +195,10 @@ Copy_syslinux_templates ()
 	then
 		cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH}
 	else
-		cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
+		if [ -d "${TEMPLATES}"/en/* ]
+		then
+			cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
+		fi
 	fi
 
 	for FILE in ${SCREEN_PATH}/*.live
-- 
cgit v1.0