diff options
author | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2023-08-21 12:06:28 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2023-08-21 12:07:28 +0200 |
commit | fdc1f401891c3f781c230f0fb701000b2e913e39 (patch) | |
tree | 5adbf988b3991eb846cb5e21e737cf5ba6695eea | |
parent | 9f9fbbf5e9ab5d30e8204df76dc3b7f683cb5b84 (diff) | |
download | harcdzielnia-fdc1f401891c3f781c230f0fb701000b2e913e39.tar.gz harcdzielnia-fdc1f401891c3f781c230f0fb701000b2e913e39.zip |
fix: syntax in build.sh
-rwxr-xr-x | build.sh | 4 |
1 files 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/^# \(.*\)/<h2>\1<\/h2>/' $1/opis.md >> dest/$filename.html @@ -14,7 +14,7 @@ function generate_page() { } -function generate_index() { +function generate_index { echo "<div class=\"container\">" for item in `find $1 -name opis.md`; do category=$(basename $(dirname $(dirname $item))) |