diff options
| author | ruki <[email protected]> | 2016-04-13 20:14:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-04-13 20:14:48 +0800 |
| commit | 733935aec221c1bce476e7cfea7b5e64d280f71e (patch) | |
| tree | b78a08fbcaab9ed00af970236c71c88d0421cc53 /xmake/core/sandbox/modules/os.lua | |
| parent | 28838d094db827cdf7dd951524c6598f90220bae (diff) | |
add make tool
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index 44bef94e1..e6fa1018a 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -172,6 +172,16 @@ function sandbox_os.run(cmd, ...) end end +-- execute shell +function sandbox_os.execute(cmd, ...) + + -- make command + cmd = vformat(cmd, ...) + + -- run it + return os.execute(cmd) +end + -- match files or directories function sandbox_os.match(pattern, findir) |
