summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-03-14 12:07:15 -0500
committerDaniel Baumann <daniel@debian.org>2010-03-14 18:24:07 +0100
commitc158efb917e3083fb4039d7682c007b9c9592210 (patch)
tree11ea084f67aefcdc3b7ac26b9e1662fcfe8b94cb
parentc3b5da9a8044ad7b5a9a1eab1753a402f6aa9bef (diff)
downloadvyos-live-build-c158efb917e3083fb4039d7682c007b9c9592210.tar.gz
vyos-live-build-c158efb917e3083fb4039d7682c007b9c9592210.zip
Added debug option on l-h.cgi cgi.
-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