summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-01-24 18:29:39 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-01-24 18:29:39 +0000
commitbc44c55239eba2864fa0cfaaaf36dee7660b6433 (patch)
treec47bdc8b17200a88f87fad8bb227173f72c72b8c
parentfcac723ece68f3535d5f7549583b9b60e149d37b (diff)
downloadgitano-bc44c55239eba2864fa0cfaaaf36dee7660b6433.tar.gz
use env
-rwxr-xr-xcgi/command.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi/command.cgi b/cgi/command.cgi
index ca5f878..4df68f7 100755
--- a/cgi/command.cgi
+++ b/cgi/command.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/lua5.1
+#!/usr/bin/env lua5.1
function url_decode(str)
str = string.gsub (str, "+", " ")
@@ -24,6 +24,8 @@ local function run_command(user)
-- TODO: do not allow fetch, push, pull, clone... anything else?
-- so really not allowing upload-pack or receive-pack here...
+ --print(os.execute(env))
+
print("cmdline: " .. cmdline)
print("package.path: " .. package.path .. '\n')