noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: 983756e22fef27dd035db320b88bae491ea0251c
parent: 295fc5408577649b0db16974c21e49acce3b4a7d
author: Chris Noxz <chris@noxz.tech>
date:   Tue, 28 Dec 2021 18:22:35 +0100
fix git description being referenced before existing
Mbuild4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/build b/build
@@ -424,12 +424,14 @@ render_git_repo() {
 	repo_path_readme="$1/${2}/readme.html.tmp"
 	repo_path_license="$1/${2}/license.html.tmp"
 	repo_name="${2%.*}"
-	repo_description="$(< "${1}/${2}"/description html_encode)"
+	repo_description=""
 
 	rsync -a --delete-before "${repo_path}/" "$1/${2##*/}"
 	git -C "$1/${2##*/}" --bare update-server-info
 	ln -s "refs" "$1/${2##*/}/info/refs?service=git-upload-pack"
 
+	repo_description="$(< "${1}/${2}"/description html_encode)"
+
 	# render common html head
 	awk                                                                     \
 		-v var_site="$(awk_safe "${1}")"                                    \