Commit 364ae481 authored by Yann Leboulanger's avatar Yann Leboulanger

prevent error when translation is empty

parent b3c8b81b
Pipeline #4349 passed with stage
in 2 seconds
......@@ -95,7 +95,10 @@ function po2md {
for PO in ${DIR_PO}/*.po; do
PO_FILE=`basename ${PO}`
LOCALE=`echo ${PO_FILE} | sed -e "s/\(.*\)\.po/\1/"`
mv ${DIR_CONTENT}/${LOCALE}/index/_index.md ${DIR_CONTENT}/${LOCALE}/_index.md
if [ -f ${DIR_CONTENT}/${LOCALE}/index/_index.md ]
then
mv ${DIR_CONTENT}/${LOCALE}/index/_index.md ${DIR_CONTENT}/${LOCALE}/_index.md
fi
rm -r ${DIR_CONTENT}/${LOCALE}/index
done
generate_md_files development
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment