]> git.plutz.net Git - shellwiki/commitdiff
prettier default glob for pagelist
authorPaul Hänsch <paul@plutz.net>
Mon, 14 Aug 2023 21:03:26 +0000 (23:03 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 14 Aug 2023 21:03:26 +0000 (23:03 +0200)
macros/pagelist

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