From 8a3dd8cfe02db31b452a137c340ba2577f573330 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Thu, 12 Mar 2009 19:00:50 +0100
Subject: Only trying to copy syslinux english templates if they are actually
 available.

---
 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