Purge existing PDFs first so that old names get removed.

This commit is contained in:
2025-10-04 14:10:31 -07:00
parent 4e9e714504
commit a730919b43

View File

@@ -849,6 +849,7 @@
function_ebook_convert: | function_ebook_convert: |
# Regenerate all eBook projects at once. # Regenerate all eBook projects at once.
function ebook-convert { function ebook-convert {
find ~/Code/ebook-* -name "*.pdf" -print -delete
find ~/Code/ebook-* -name convert.sh -print -exec bash "{}" \; find ~/Code/ebook-* -name convert.sh -print -exec bash "{}" \;
} }
alias ebooks="ebook-convert" alias ebooks="ebook-convert"