summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-12-24 19:46:30 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-12-24 19:46:30 +0100
commit1cc6c316feae649d3c8b64ef0c980dfd792c2347 (patch)
treed2153ed2d05808a40963f095fb2d29c4f5e5c4c8 /scripts
parent19750b667c23a9f276032837d6c517063376bd0c (diff)
downloadcontext-1cc6c316feae649d3c8b64ef0c980dfd792c2347.tar.gz
2021-12-24 19:09:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtxrun.lua4
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua4
-rw-r--r--scripts/context/stubs/unix/mtxrun4
-rw-r--r--scripts/context/stubs/win64/mtxrun.lua4
4 files changed, 16 insertions, 0 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 1a1bc2734..12645e462 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -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
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 1a1bc2734..12645e462 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -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
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
diff --git a/scripts/context/stubs/win64/mtxrun.lua b/scripts/context/stubs/win64/mtxrun.lua
index 1a1bc2734..12645e462 100644
--- a/scripts/context/stubs/win64/mtxrun.lua
+++ b/scripts/context/stubs/win64/mtxrun.lua
@@ -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