Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/luajit-rocks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/fs.lua')
-rw-r--r--src/luarocks/fs.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs.lua b/src/luarocks/fs.lua
index 72e11c0..57302c7 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
old_exec = os.execute
os.execute = function(cmd)
- print("\nos.execute: ", cmd)
+ -- redact api keys if present
+ print("\nos.execute: ", (cmd:gsub("(/api/[^/]+/)([^/]+)/", function(cap, key) return cap.."<redacted>/" end)) )
local code = pack(old_exec(cmd))
print("Results: "..tostring(code.n))
for i = 1,code.n do