From fdc1f401891c3f781c230f0fb701000b2e913e39 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 21 Aug 2023 12:06:28 +0200 Subject: fix: syntax in build.sh --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index bd64203..26b208c 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ cp static/* dest cat _index_header.html > dest/index.html -function generate_page() { +function generate_page { filename=$(basename $1) cat _header.html > dest/$filename.html sed 's/^# \(.*\)/

\1<\/h2>/' $1/opis.md >> dest/$filename.html @@ -14,7 +14,7 @@ function generate_page() { } -function generate_index() { +function generate_index { echo "
" for item in `find $1 -name opis.md`; do category=$(basename $(dirname $(dirname $item))) -- cgit 1.4.1