deployment-script.sh: Add support for questionmarks in filenames.

master
BodgeMaster 2025-07-02 22:26:08 +02:00
parent 6f5ff07760
commit 3e9f710186
1 changed files with 1 additions and 1 deletions

View File

@ -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 "$FILE" >&2
echo -ne " <li><a href=\"$FILE\">\n"
echo -ne " <li><a href=\"$(sed -e 's/\?/%3F/g' <<< "$FILE")\">\n"
echo -n " $(sed -e 's|^\./||;s/-.*//' <<< "$FILE") <span class="'"chapter">'
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> //;s| </title>|</span>|'
echo " </a></li>"