summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)