summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-16 19:48:38 +0300
committerSaikari <[email protected]>2026-02-16 19:48:38 +0300
commit6a89f384f8dc2f837f52cbbab7ea903d34dd6175 (patch)
tree0467c98e1ce2cb72b7c43c72eb22068f410c6c41
parent530d8745ab19cf707ac0a1e729d641325455b24b (diff)
retry
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_program.lua4
1 files changed, 3 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 6bd140b12..fd8908bdf 100644
--- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
+++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
@@ -67,7 +67,9 @@ function sandbox_lib_detect_find_program._do_check(program, opt)
local ok_or_errors
ok, ok_or_errors = sandbox.load(opt.check, program)
if ok then
- ok = ok_or_errors
+ if ok_or_errors ~= nil then
+ ok = ok_or_errors
+ end
else
errors = ok_or_errors
end