diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-24 18:29:39 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-24 18:29:39 +0000 |
commit | bc44c55239eba2864fa0cfaaaf36dee7660b6433 (patch) | |
tree | c47bdc8b17200a88f87fad8bb227173f72c72b8c | |
parent | fcac723ece68f3535d5f7549583b9b60e149d37b (diff) | |
download | gitano-bc44c55239eba2864fa0cfaaaf36dee7660b6433.tar.gz |
use env
-rwxr-xr-x | cgi/command.cgi | 4 |
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') |