From: Paul Hänsch Date: Tue, 19 Sep 2023 16:39:07 +0000 (+0200) Subject: avoid some error log spamming X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b9ae87c0af0d89d70dee019ef308aaa0f8dd5757;p=shellwiki avoid some error log spamming --- diff --git a/macros/toc b/macros/toc index 5f89936..ed046e7 100755 --- a/macros/toc +++ b/macros/toc @@ -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