summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/utils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-01 23:59:53 +0800
committerruki <[email protected]>2015-12-01 23:59:53 +0800
commite56812a09d3677957c41bccc8988599208e3b49a (patch)
tree5e208f2707be9348b7b215706c3fa6cf64aa2134 /xmake/scripts/base/utils.lua
parente88ecbfd2dcdf19908df50abf86fd29032e2d359 (diff)
improve proberv1.0.3
Diffstat (limited to 'xmake/scripts/base/utils.lua')
-rw-r--r--xmake/scripts/base/utils.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/scripts/base/utils.lua b/xmake/scripts/base/utils.lua
index 58ec6ba60..738013a76 100644
--- a/xmake/scripts/base/utils.lua
+++ b/xmake/scripts/base/utils.lua
@@ -224,10 +224,13 @@ function utils.call(funcs, pred, ...)
-- exists predicate?
if pred and type(pred) == "function" then
- if not pred(name, result) then break end
+ if not pred(name, result) then return false end
-- failed?
- elseif not result then break end
+ elseif not result then return false end
end
+
+ -- ok
+ return true
end
-- return module: utils