aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-06-04 00:38:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-06-04 00:38:43 +0200
commit3d4eb955c2b589d1cc739065a272be26c933722b (patch)
treec8da0b24dfba05195bd711560b0858d90e878342 /build.sh
parenta9c4f75f96eda90f0163b308d8c9b2f9ec895eb8 (diff)
downloadsebastiano.tronto.net-3d4eb955c2b589d1cc739065a272be26c933722b.tar.gz
sebastiano.tronto.net-3d4eb955c2b589d1cc739065a272be26c933722b.zip
Fixed grepping multiple titles
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index a6c5879..9b89708 100755
--- a/build.sh
+++ b/build.sh
@@ -14,6 +14,7 @@ recursivebuild() {
14 extension=$(echo "$file" | sed 's/.*\.//') 14 extension=$(echo "$file" | sed 's/.*\.//')
15 if [ "$extension" = "md" ]; then 15 if [ "$extension" = "md" ]; then
16 sed "s/TITLE/$(grep '^\# ' < "$1/$file" \ 16 sed "s/TITLE/$(grep '^\# ' < "$1/$file" \
17 | head -n 1 \
17 | sed 's/^\# //')/" < top.html \ 18 | sed 's/^\# //')/" < top.html \
18 > "$destdir/index.html" 19 > "$destdir/index.html"
19 lowdown "$1/$file" >> "$destdir/index.html" 20 lowdown "$1/$file" >> "$destdir/index.html"

Generated with cgit - Back to sebastiano.tronto.net