]> Sergey Matveev's repositories - zk.git/commitdiff
Fix link to directory
authorSergey Matveev <stargrave@stargrave.org>
Sun, 4 May 2025 11:47:33 +0000 (14:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 4 May 2025 11:49:19 +0000 (14:49 +0300)
zk.zsh

diff --git a/zk.zsh b/zk.zsh
index e1bdc0efba8153710fa28a7bb9980d44e77f46da..90da4605b3d9a1ec773f3eb461c463ab39cbfc4f 100755 (executable)
--- a/zk.zsh
+++ b/zk.zsh
@@ -138,6 +138,7 @@ $data</pre>"
         print "<hr/>Links:<table border=1>"
         for p ($_links) {
             getrel $page $p
+            [[ -d $p ]] && REPLY=$REPLY/index
             print "<tr><td><a href=\"${REPLY}.html\">$p</a></td><td><tt>${mtimes[$p]}</tt></td></tr>"
         }
         print "</table>"