Makes more sense to overwrite output files

This commit is contained in:
trémeur 2023-09-02 08:14:13 +01:00
parent 938888f015
commit 008c618c16

View file

@ -45,26 +45,17 @@ do
if [ ${builddir} != "null" ] if [ ${builddir} != "null" ]
then then
if test -f "texts/${ficstring}.html" if test -f "texts/${ficstring}.html"
then
if ! test -f "build/${builddir}/${ficstring}.html"
then then
mv "texts/${ficstring}.html" "build/${builddir}/" mv "texts/${ficstring}.html" "build/${builddir}/"
fi fi
fi
if test -f "texts/${ficstring}.pdf" if test -f "texts/${ficstring}.pdf"
then
if ! test -f "build/${builddir}/${ficstring}.pdf"
then then
mv "texts/${ficstring}.pdf" "build/${builddir}/" mv "texts/${ficstring}.pdf" "build/${builddir}/"
fi fi
fi
if test -f "texts/${ficstring}.epub" if test -f "texts/${ficstring}.epub"
then
if ! test -f "build/${builddir}/${ficstring}.epub"
then then
mv "texts/${ficstring}.epub" "build/${builddir}/" mv "texts/${ficstring}.epub" "build/${builddir}/"
fi fi
fi fi
fi fi
fi
done done