]> git.plutz.net Git - shellwiki/commitdiff
minor fixes in <<pagelist>>
authorPaul Hänsch <paul@plutz.net>
Tue, 15 Aug 2023 11:14:09 +0000 (13:14 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 15 Aug 2023 11:14:09 +0000 (13:14 +0200)
macros/pagelist

index 86befb4662ed61934ddcbbe4d88c076bf695f360..ed4ddbe753b14f4638483939376a78b56c24ab17 100755 (executable)
@@ -16,9 +16,9 @@ while [ $# -gt 0 ]; do case $1 in
 esac; done
 
 [ "$dir" ] || dir=*
-[ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&0 || depth=0
+[ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&- || depth=0
 
-printf '<ul class="pagelist">\n'
+printf '<ul class="macro pagelist">\n'
   page_glob "$dir" "$depth" \
   | while read -r glob; do
     printf %s\\n "$glob"