From 6a89f384f8dc2f837f52cbbab7ea903d34dd6175 Mon Sep 17 00:00:00 2001 From: Saikari Date: Mon, 16 Feb 2026 19:48:38 +0300 Subject: retry --- xmake/core/sandbox/modules/import/lib/detect/find_program.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1