From d5da54c11dc27bdbb68d05808df2f63f11512d0c Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 6 Dec 2023 18:59:46 +0100 Subject: [PATCH] deployment-script: cut the ./ from the start of the chapter link --- deployment-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment-script.sh b/deployment-script.sh index be3a5fa..a5d4aae 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -4,7 +4,7 @@ cp html_resources/index_template.html index.html function genlinks { for FILE in $(find . -maxdepth 1 -type f -name "??-*.html" | sort); do echo -ne "
  • \n" - echo -n " $(sed -e 's/-.*//' <<< "$FILE") ' + echo -n " $(sed -e 's|^\./||;s/-.*//' <<< "$FILE") ' grep -oe ".*" $FILE | sed -e 's/ //;s| ||' echo "
  • " done