diff options
| author | Saikari <[email protected]> | 2026-02-16 19:37:53 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-16 19:37:53 +0300 |
| commit | f024c37ca77bec28ffa7377af56ae8f0b189a4b3 (patch) | |
| tree | 77078857fcdab934b69694fd95b886aad8be9477 | |
| parent | 1ef8c05c510484e3d7e608c87abcb65efe3a5aba (diff) | |
retry
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_program.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua index 288a9089e..18abf37a2 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua @@ -64,7 +64,13 @@ function sandbox_lib_detect_find_program._do_check(program, opt) elseif type(opt.check) == "table" then ok, errors = os.runv(program, opt.check, {envs = opt.envs, shell = opt.shell}) else - ok, errors = sandbox.load(opt.check, program) + local ok_or_errors + ok, ok_or_errors = sandbox.load(opt.check, program) + if ok then + ok = ok_or_errors + else + errors = ok_or_errors + end end -- check failed? print verbose error info |
