mirror of
https://codeberg.org/1414codeforge/crush.git
synced 2025-01-28 18:20:28 +01:00
[crush] Fix os.execute() failure detection on LuaJIT.
This commit is contained in:
parent
1e19ea0290
commit
52ced64154
@ -205,7 +205,11 @@ local function fetch(dep)
|
||||
fullcmd = chdir("lib", quiet(cmd))
|
||||
end
|
||||
|
||||
if not os.execute(fullcmd) then
|
||||
-- On success, os.execute() returns:
|
||||
-- true on regular Lua
|
||||
-- 0 on LuaJIT (actual OS error code)
|
||||
local code = os.execute(fullcmd)
|
||||
if code ~= true and code ~= 0 then
|
||||
error(dep.name..": Dependency fetch failed ("..cmd..").")
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user