]> git.plutz.net Git - shellwiki/commitdiff
avoid some error log spamming
authorPaul Hänsch <paul@plutz.net>
Tue, 19 Sep 2023 16:39:07 +0000 (18:39 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 19 Sep 2023 16:39:07 +0000 (18:39 +0200)
macros/toc

index 5f89936d45e9c7acd03061ed0863c6ae3c4c0dc5..ed046e7bb6f22e95516849920c0c1cb3d0fc6470 100755 (executable)
@@ -16,7 +16,7 @@
 
 . "$_EXEC/cgilite/cgilite.sh"
 
-min="$1" max="$2"
+min="${1:-1}" max="${2:-6}"
 [ "$min" -ge 1 -a "$min" -le 6 ] || min=1
 [ "$max" -ge "$min" ] || max="$min"
 [ "$max" -le 6 ] || max=6