From 8240e6d909f32fc58866bc86ea5352e8ea79d82d Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 15 Feb 2021 10:22:32 -0500 Subject: [PATCH] Rm the manpages from within the for loop --- .gitignore | 1 + convert | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ca441ef..2ce405f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.min.* +index.html diff --git a/convert b/convert index 23c9457..88ec1d2 100755 --- a/convert +++ b/convert @@ -5,10 +5,9 @@ curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards-config.5 find . -type f -name 'lightcards**' -not -name '*min*' | \ while read i; do - groff -mandoc -Thtml ${i} > ${i}.html + groff -mandoc -T html ${i} > ${i}.html minify ${i}.html > ${i}.min.html - rm ${i}.html + rm ${i}.html ${i} done minify index-raw.html > index.html -rm lightcards.1 lightcards-config.5 -- 2.39.2