From 238f0f8a2932b5ba66f7139c227eaaeb5dd7a013 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 24 Jun 2020 12:02:33 +0200 Subject: [PATCH] rudimentary debug function --- cgilite.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgilite.sh b/cgilite.sh index f03f747..2e53832 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -27,6 +27,8 @@ BR=' ' cgilite_timeout=2 +debug(){ [ $# -gt 0 ] && printf '%s\n' "$@" >&2 || tee -a /dev/stderr; } + PATH(){ local str seg out [ $# -eq 0 ] && str="$(cat)" || str="$*" -- 2.39.2