summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/main.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-31 06:12:36 +0300
committerSaikari <[email protected]>2026-01-31 06:12:36 +0300
commit6e6ea966829029f9fce91a1270d76ab8c4b0332a (patch)
tree1f08eeb4170e121002e38737419b8ffc8b04a9c2 /xmake/plugins/lua/main.lua
parent4630ca802874f6d45e447a7ab79c1a54b03d866a (diff)
add error handling for os.execv and implement tests for shell command execution
Diffstat (limited to 'xmake/plugins/lua/main.lua')
-rw-r--r--xmake/plugins/lua/main.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua
index 3da4ee4b8..f3e6f400d 100644
--- a/xmake/plugins/lua/main.lua
+++ b/xmake/plugins/lua/main.lua
@@ -73,15 +73,6 @@ function main()
end
end
- -- enable diagnosis to get the stack traceback
- local get_old = option.get
- option.get = function (name)
- if name == "diagnosis" then
- return true
- end
- return get_old(name)
- end
-
try {
function ()
if script then
@@ -101,7 +92,6 @@ function main()
},
finally {
function ()
- option.get = get_old
if scriptfile_stdin then
os.rm(scriptfile_stdin)
end