diff --git a/xmake/modules/cli/bisect.lua b/xmake/modules/cli/bisect.lua index 2ce0909600d..5e69a8915bc 100644 --- a/xmake/modules/cli/bisect.lua +++ b/xmake/modules/cli/bisect.lua @@ -50,7 +50,7 @@ function _run_command(opt) local arbitrary = opt.arbitrary if commands then for _, command in ipairs(commands:split(";")) do - os.exec(command) + os.exec(command:trim()) end elseif arbitrary then local program = arbitrary[1]