From 08ab6070d42e50031c2077688ccb4296a8436564 Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 5 Apr 2026 23:11:43 +0200 Subject: [PATCH] better run.sh --- run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 94ca468..a5d9d19 100755 --- a/run.sh +++ b/run.sh @@ -1,10 +1,12 @@ #/bin/sh cargo build && cp target/debug/mdf-blog . || true -./mdf-blog html blogs/* > blog-tmp.html +BLOGS=$(ls $PWD/blogs/*) + +./mdf-blog html $BLOGS > blog-tmp.html sed template.html -e '/INSERT_HERE/{ r blog-tmp.html d }' > public/index.html -./mdf-blog rss blogs/* > public/rss.xml +./mdf-blog rss $BLOGS > public/rss.xml