From 773b60ef51f9f9eb656020f3be38f67e2f914033 Mon Sep 17 00:00:00 2001
From: Richard Nelson <unixabg@gmail.com>
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(+)
diff --git a/cgi/cgi b/cgi/cgi
index a3bee95..a9c0310 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.0