From c158efb917e3083fb4039d7682c007b9c9592210 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Sun, 14 Mar 2010 12:07:15 -0500 Subject: Added debug option on l-h.cgi cgi. --- cgi/cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cgi') diff --git a/cgi/cgi b/cgi/cgi index a3bee9591..a9c0310bd 100755 --- a/cgi/cgi +++ b/cgi/cgi @@ -16,6 +16,12 @@ else exit 1 fi +# Turn on debug if enabled +if [ "${_DEBUG}" = "enabled" ] +then + set -x +fi + # Sending http header echo "Content-type: text/html" echo -- cgit v1.2.3