summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/process.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-14 22:45:12 +0800
committerruki <[email protected]>2017-09-14 10:31:14 +0800
commit9b5dfae7e222ad3cdd293cbc962b6b9dc96590a6 (patch)
treea46c647f933c36bfee392dbbad5e707a2e97fcc1 /xmake/core/sandbox/modules/process.lua
parentb27b6447c072d357db96d17500c73bf9013b8c5c (diff)
add github traffic statistics
Diffstat (limited to 'xmake/core/sandbox/modules/process.lua')
-rw-r--r--xmake/core/sandbox/modules/process.lua9
1 files changed, 6 insertions, 3 deletions
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