Return to repo list

remgit-scripts

A collection of scripts for use with a simple remote git service.
Return to HMagellan.com

commit fc7ff0e9971dfa544cf2d83dd4d70711d96ae860
parent c701a77e704fd89e29f91911d72a2979e9cb0706
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Sun,  5 Jul 2020 15:27:05 -0500

Fix for log page links on subpages

Diffstat:
Mupstagit.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/upstagit.sh b/upstagit.sh @@ -50,11 +50,11 @@ sed -i "s,<\/span><\/td><\/tr>,<\/span><\/td><td><a href\=\"$HOME_PAGE_URL\">Ret for j in $(ls $REPO_PATH); do for k in $(ls -R -a1 $WEB_PATH/$WEB_REPO_DIR/* | find $WEB_PATH/$WEB_REPO_DIR | grep ".html$"); do - sed -i -E -e "s,href\=\"\.\.\/\",href\=\"$WEB_URL\",g" "$k" + #sed -i -E -e "s,href\=\"\.\.\/\",href\=\"$WEB_URL\",g" "$k" sed -i -E -e "s,\=\"\(\.\.\/\)*logo\.png\",\=\"$LOGO_URL\",g" "$k" sed -i -E -e "s,\=\"\(\.\.\/\)*style\.css\",\=\"$STYLE_URL\",g" "$k" sed -i "s,width\=\"32\" height\=\"32\",width\=\"$ICON_WIDTH\" height=\=\"$ICON_HEIGHT\",g" "$k" - sed -i "s,<table>,<table id\=\"title-head\">," "$k" + sed -i "s,<table>.*<img,<table id\=\"title-head\"><tr><td><a href\=\"$WEB_URL\"><img," "$k" sed -i "s,<\/a><\/td><\/tr><\/table>,<\/a> \| git clone: <a href\=\"$GIT_ACCESS_URL\/$j\">$GIT_ACCESS_URL\/$j<\/a><\/td><\/tr><\/table>," "$k" done done