diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-23 02:22:48 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-23 02:22:48 -0300 |
commit | 2f9c1155a591e9d4e274ef41dfb9e3397d650038 (patch) | |
tree | 59af59eb98ea5507ed12fcd5f799426bebe41480 | |
parent | 9736020715526c007388236d8916a6c2b23d9ad0 (diff) | |
parent | 97b98bf9a97e0cfcd5f2230737f4789a6dea88ec (diff) | |
download | luarocks-2f9c1155a591e9d4e274ef41dfb9e3397d650038.tar.gz luarocks-2f9c1155a591e9d4e274ef41dfb9e3397d650038.tar.bz2 luarocks-2f9c1155a591e9d4e274ef41dfb9e3397d650038.zip |
Merge branch 'master' of https://github.com/keplerproject/luarocks
-rw-r--r-- | src/luarocks/fs.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs.lua b/src/luarocks/fs.lua index 72e11c09..57302c7f 100644 --- a/src/luarocks/fs.lua +++ b/src/luarocks/fs.lua | |||
@@ -31,7 +31,8 @@ fs.verbose = function() -- patch io.popen and os.execute to display commands | |||
31 | 31 | ||
32 | old_exec = os.execute | 32 | old_exec = os.execute |
33 | os.execute = function(cmd) | 33 | os.execute = function(cmd) |
34 | print("\nos.execute: ", cmd) | 34 | -- redact api keys if present |
35 | print("\nos.execute: ", (cmd:gsub("(/api/[^/]+/)([^/]+)/", function(cap, key) return cap.."<redacted>/" end)) ) | ||
35 | local code = pack(old_exec(cmd)) | 36 | local code = pack(old_exec(cmd)) |
36 | print("Results: "..tostring(code.n)) | 37 | print("Results: "..tostring(code.n)) |
37 | for i = 1,code.n do | 38 | for i = 1,code.n do |