From 008c618c167d800a9d76532b9822ca619d29dc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sat, 2 Sep 2023 08:14:13 +0100 Subject: [PATCH] Makes more sense to overwrite output files --- sortfics.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sortfics.sh b/sortfics.sh index 58bf308..cc015cb 100755 --- a/sortfics.sh +++ b/sortfics.sh @@ -46,24 +46,15 @@ do then if test -f "texts/${ficstring}.html" then - if ! test -f "build/${builddir}/${ficstring}.html" - then - mv "texts/${ficstring}.html" "build/${builddir}/" - fi + mv "texts/${ficstring}.html" "build/${builddir}/" fi if test -f "texts/${ficstring}.pdf" then - if ! test -f "build/${builddir}/${ficstring}.pdf" - then - mv "texts/${ficstring}.pdf" "build/${builddir}/" - fi + mv "texts/${ficstring}.pdf" "build/${builddir}/" fi if test -f "texts/${ficstring}.epub" then - if ! test -f "build/${builddir}/${ficstring}.epub" - then - mv "texts/${ficstring}.epub" "build/${builddir}/" - fi + mv "texts/${ficstring}.epub" "build/${builddir}/" fi fi fi