about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2023-08-21 12:06:28 +0200
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2023-08-21 12:07:28 +0200
commitfdc1f401891c3f781c230f0fb701000b2e913e39 (patch)
tree5adbf988b3991eb846cb5e21e737cf5ba6695eea
parent9f9fbbf5e9ab5d30e8204df76dc3b7f683cb5b84 (diff)
downloadharcdzielnia-fdc1f401891c3f781c230f0fb701000b2e913e39.tar.gz
harcdzielnia-fdc1f401891c3f781c230f0fb701000b2e913e39.zip
fix: syntax in build.sh
-rwxr-xr-xbuild.sh4
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)))