pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 7d758511210ab3f06d9adec0aa2660e2bc4718f5
parent d9297619f969c3e5813eca5119ee2f7741ec2ade
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 10 Jun 2024 22:26:13 +0200

fix: smaller cleanups

Diffstat:
Mbin/git_update_repo_html.sh | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -34,7 +34,6 @@ stagit "${1}/${2}/${3}.git" # Activity module if [ -f "${1}/bin/activity.sh" ]; then - echo "Executing Activity Module" ACTIVITY_HTML=`${1}/bin/activity.sh "${1}/${2}/${3}.git"` fi @@ -54,9 +53,8 @@ RDESCS=$( cat "${1}/${2}/${3}.git/description" 2>/dev/null | \ sed -e 's/\//\\\//g' ) -RURL=$( - cat "${1}/${2}/${3}.git/url" 2>/dev/null | \ - sed -e 's/\//\\\//g') +RURL=$(cat "${1}/${2}/${3}.git/url" 2>/dev/null) +RURL_ESC=$(echo "$RURL" | sed -e 's/\//\\\//g') RMENU=$( grep -E "^.*<a\ href=\"log.html\">.*$" \ --only-matching "${1}/${2}/${3}/log.html" | \ @@ -70,14 +68,14 @@ THEAD=$( -e "s/<\!--TITLE-->/${3}/g" \ -e "s/<\!--DESC-->/${RDESCS}/g" \ -e "s/<\!--DIR-->/\./g" \ - -e "s/<\!--REPO-->/${RURL}/g" + -e "s/<\!--REPO-->/${RURL_ESC}/g" ) TMENU=$( cat "${1}/templates/menu.html" | \ sed \ -e "s/<\!--TITLE-->/${3}/g" \ -e "s/<\!--DESC-->/${RDESCS}/g" \ - -e "s/<\!--REPO-->/${RURL}/g" \ + -e "s/<\!--REPO-->/${RURL_ESC}/g" \ -e "s/<\!--MENU-->/${RMENU}/g" ) @@ -181,5 +179,5 @@ find "${1}/${2}/${3}/" -type f -name "*.html" -exec sed -E "${INJEXP}" -i {} \; # Linking Assets --------------------------------------------------------------- ln -sf "${1}/assets/style.css" "${1}/${2}/${3}/style.css" ln -sf "${1}/assets/favicon.png" "${1}/${2}/${3}/favicon.png" -# ln -sf "${1}/assets/backicon.png" "${1}/${2}/${3}/logo.png" +ln -sf "${1}/assets/backicon.png" "${1}/${2}/${3}/logo.png"