From 689a17cfc40b9b3795a3d25507b61e4a02ae8096 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sat, 6 Feb 2021 19:55:28 +0100 Subject: [PATCH] conditionally link about.html --- gitolite-pystagit/bin/build-pystagit-repo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gitolite-pystagit/bin/build-pystagit-repo b/gitolite-pystagit/bin/build-pystagit-repo index 3b6ca82..34235ae 100644 --- a/gitolite-pystagit/bin/build-pystagit-repo +++ b/gitolite-pystagit/bin/build-pystagit-repo @@ -20,7 +20,11 @@ run_pystagit () { mkdir -p "${out_dir}" && \ cd "${out_dir}" && \ /usr/bin/pystagit "${repo_dir}" && \ - ln -sf files.html index.html + if [ -f about.html ]; then + ln -sf files.html index.html + else + ln -sf log.html index.html + fi } set_url () {