From 4e18b16d5c559f31e4f71458fce3976f237203f1 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 30 Oct 2026 14:53:56 +0530 Subject: Return the correct table from loadconfig. --- mkelf.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mkelf.lua b/mkelf.lua index b22f064..24b10a3 100644 --- a/mkelf.lua +++ b/mkelf.lua @@ -47,16 +47,18 @@ local function loadconfig(fn) segment:normalize() segment:validate() end + segments = t end, sections = function(t) if type(t) ~= "table" then error("sections must be a table", 2) end for _, section in ipairs(t) do - section = setmetatable(t, section_mt) + section = setmetatable(section, section_mt) section:normalize() section:validate() end + sections = t end, }, __newindex = function(_, name) -- cgit v1.3