diff options
Diffstat (limited to 'scripts/context/stubs/unix/mtxrun')
-rw-r--r-- | scripts/context/stubs/unix/mtxrun | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index 1a1bc2734..12645e462 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -27477,6 +27477,10 @@ end if ok == false then ok = 1 elseif ok == true or ok == nil then ok = 0 end +if lua and lua.getexitcode then + ok = lua.getexitcode() +end + -- os.exit(ok,true) -- true forces a cleanup in 5.2+ os.exit(ok) -- true forces a cleanup in 5.2+ but reports a wrong number then |