Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Wed Sep 20 14:53:07 2023 -0300
Parent: 9d78145
Fixed white space * Fixed links
diff --git a/update-repo-tree b/update-repo-tree
index 7dac49e..f93afa0 100755
--- a/update-repo-tree
+++ b/update-repo-tree
@@ -47,11 +47,11 @@ createfilepage() {
<center>
<h1>$REPO</h1>
<nav>
- <a href=index.html>index</a>  
- <a href=refs.html>refs</a>  
- <a href=log.html>log</a>  
+ <a href=/$REPO/index.html>index</a>  
+ <a href=/$REPO/refs.html>refs</a>  
+ <a href=/$REPO/log.html>log</a>  
<a href=/$REPO/tree.html>tree</a>  
- <a href=mail.html>mail</a>
+ <a href=/$REPO/mail.html>mail</a>
</nav>
<p><i>$(cat description)</i></p>
</center>
@@ -60,7 +60,7 @@ createfilepage() {
<pre>
<ol>
EOF
- while read -r l
+ while IFS='' read -r l
do
echo "<li>$l</li>"
done < "$OUT/tree/$1"