From 9b5dfae7e222ad3cdd293cbc962b6b9dc96590a6 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Sep 2017 22:45:12 +0800 Subject: add github traffic statistics --- xmake/core/sandbox/modules/process.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'xmake/core/sandbox/modules/process.lua') diff --git a/xmake/core/sandbox/modules/process.lua b/xmake/core/sandbox/modules/process.lua index cc4282702..6c71bb522 100644 --- a/xmake/core/sandbox/modules/process.lua +++ b/xmake/core/sandbox/modules/process.lua @@ -61,11 +61,14 @@ function sandbox_process.open(command, outfile, errfile) end -- open process with arguments -function sandbox_process.openv(argv, outfile, errfile) +function sandbox_process.openv(filename, argv, outfile, errfile) -- check assert(argv) + -- format filename first + filename = vformat(filename) + -- format output file if exists if outfile then outfile = vformat(outfile) @@ -77,9 +80,9 @@ function sandbox_process.openv(argv, outfile, errfile) end -- open process - local proc = process.openv(argv, outfile, errfile) + local proc = process.openv(filename, argv, outfile, errfile) if not proc then - raise("openv process(%s) failed!", table.concat(argv, " ")) + raise("openv process(%s, %s) failed!", filename, table.concat(argv, " ")) end -- ok -- cgit v1.3.1