diff options
| author | ruki <[email protected]> | 2016-03-22 21:59:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-22 21:59:54 +0800 |
| commit | fa6157898a39fd68cf0dd2c45593ca4ac1b7d2eb (patch) | |
| tree | 7074e46429c874e257a9582b4d405cc47334eeeb /xmake/core/sandbox/modules/utils.lua | |
| parent | 99b26ff26a985a65ca4a548d7ff2c87d8357ac39 (diff) | |
add build run script
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 395642268..d5f5c73c7 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -38,6 +38,11 @@ end -- print with the builtin variables and newline function sandbox_utils.print(format, ...) + -- print non-formated string + if type(format) ~= "string" then + return print(format, ...) + end + -- done return io.write(vformat(format, ...) .. "\n") end |
