aboutsummaryrefslogtreecommitdiff
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
parenta9c4f75f96eda90f0163b308d8c9b2f9ec895eb8 (diff)
downloadsebastiano.tronto.net-3d4eb955c2b589d1cc739065a272be26c933722b.tar.gz
sebastiano.tronto.net-3d4eb955c2b589d1cc739065a272be26c933722b.zip
Fixed grepping multiple titles
-rw-r--r--.gitignore1
-rwxr-xr-xbuild.sh1
2 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 18bd88b..f7a84cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
1http 1http
2gemini 2gemini
3BLOG-IDEAS
4HTML-TIPS 3HTML-TIPS
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