ref: e614037b9227c0ed5a23bcca346fcfa8b8be15c0
parent: 653a66db903cea4e30c1958a3fe4050876404e01
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Nov 29 21:59:55 EST 2020
correctly terminate the lists (thanks deuteron)
--- a/shithub
+++ b/shithub
@@ -88,6 +88,8 @@
udir=()
for(repo in `$nl{ls */}){
ndir=`{basename -d $repo}
+ if(! ~ $udir)
+ echo '</dl>'
if(! ~ $udir $ndir){
echo '<h3>'$ndir'</h3>'
echo '<dl>'
@@ -103,12 +105,8 @@
echo 'code some guy wrote'
echo '</dd>'
}
- if(! ~ $udir $ndir){
- echo '</dl>'
- udir=$ndir
- }
+ udir=$ndir
}
- echo '</dl>'
case 'tar'
gituser=$2