]> git.armaanb.net Git - lightcards-http.git/blobdiff - convert
Rm the manpages from within the for loop
[lightcards-http.git] / convert
diff --git a/convert b/convert
index 23c9457590f4a8aad76c6cc261d2fc0574e182a1..88ec1d2261b998351c044e26610b8ad7f0c61238 100755 (executable)
--- 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