Browse Source

fixed cleanup

main
Artemis 1 month ago
parent
commit
2c7c4b8695
  1. 7
      blog.sh

7
blog.sh

@ -18,7 +18,6 @@ function handle_html {
if [[ -x $tpl_input ]]; then
janet blog.janet --html $input | $tpl_input | ./template.html.sh > $output
rm $tpl_input
else
janet blog.janet --html $input | ./template.html.sh > $output
fi
@ -58,10 +57,14 @@ if (( $# == 1 )); then
exit 0
fi
echo "Initializing..."
if [[ -d "$out_dir" ]]; then
rm -rf "$out_dir"
fi
cp -r files "$out_dir"
echo "Building..."
cp -r files "$out_dir"
find "$out_dir" -type f -exec "$blog_sh" {} \;
echo "Cleaning up build..."
find "$out_dir" -name '*.tpl' -delete
Loading…
Cancel
Save