summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcgi/cgi6
1 files changed, 6 insertions, 0 deletions
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