Return to repo list

remgit-scripts

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

commit 2ce41982718bfdabd8e8e368d3a261e9576c1049
parent ede2dbbb303aef6e4415440f747c0549c4d64c8c
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Mon,  6 Jul 2020 11:45:16 -0500

should be able to style links in header

Diffstat:
Mupstagit.sh | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/upstagit.sh b/upstagit.sh @@ -55,6 +55,7 @@ for j in $(ls $REPO_PATH); do sed -i "s,<table>.*<img.*\/>,<table id\=\"title-head\"><tr><td><a href\=\"$WEB_URL\"><img src\=\"$LOGO_URL\" alt\=\"$LOGO_ALT\" width\=\"$ICON_WIDTH\" height\=\"$ICON_HEIGHT\" \/> ," "$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" sed -i "0/<\/td><\/tr>/{s,<\/td><\/tr>,<\/td><td><a href\=\"$HOME_PAGE_URL\">$HOME_LINK_TEXT<\/a><\/td><\/tr>,}" "$k" + sed -i "0/<td><\/td><td>/{s,<td><\/td><td>,<td><\/td><td id\=\"repolinks\">,}" "$k" done done