Improving check for syslinux templates by checking actual content, not just the directory.
This commit is contained in:
parent
fb314b164f
commit
1457161934
|
@ -191,11 +191,11 @@ Copy_syslinux_templates ()
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "${TEMPLATES}"/"${LH_LANGUAGE}" ]
|
if ls "${TEMPLATES}/${LH_LANGUAGE}"/* > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH}
|
cp -r "${TEMPLATES}"/"${LH_LANGUAGE}"/* ${SCREEN_PATH}
|
||||||
else
|
else
|
||||||
if [ -d "${TEMPLATES}"/en/* ]
|
if ls "${TEMPLATES}"/en/* > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
|
cp -r "${TEMPLATES}"/en/* ${SCREEN_PATH}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue