site

My personal website.

Date: Fri, 16 Jul 2021 14:01:59 +0200

Don't delete output directory in generate

Diffstat:

M generate                            |       3 +--

1 file changed, 1 insertion(+), 2 deletions(-)

@@ -206,8 +206,7 @@ escape() {
     [ $output = "gopher" ] && printf "%s" "$1"
 }
 
-rm -rf "$dir"
-mkdir "$dir"
+mkdir -p "$dir"
 cp -rf ./* "$dir"
 files="$(find "$dir" -name '*.gmi' -type f)"