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