summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-02-04 00:51:23 +0800
committerruki <[email protected]>2025-02-04 00:51:23 +0800
commitfffc4190d7c706156e8421a7381c0bb62ae90cc8 (patch)
treeef5ee0d5413ba1a59e67125905c6c745939fd9e0
parent11b8a36ff31d29c4768c78005ef8231468b80904 (diff)
improve print logs
-rw-r--r--xmake/core/sandbox/modules/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua
index d626d0372..4e6bfaf50 100644
--- a/xmake/core/sandbox/modules/os.lua
+++ b/xmake/core/sandbox/modules/os.lua
@@ -285,7 +285,7 @@ end
-- quietly run command with arguments list and echo verbose info if [-v|--verbose] option is enabled
function sandbox_os.vrunv(program, argv, opt)
if option.get("verbose") then
- print(vformat(program) .. " " .. sandbox_os.args(argv))
+ print(vformat(program) .. " " .. sandbox_os.args(argv or {}))
end
if not (opt and opt.dryrun) then
(option.get("verbose") and sandbox_os.execv or sandbox_os.runv)(program, argv, opt)