Lua got confused by varargs

This commit is contained in:
2026-09-16 17:59:24 -06:00
parent f229e7331e
commit f1b5fbc615
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -280,8 +280,9 @@ utility.read_file = function(file_name)
end end
utility.write_file = function(file_name, ...) utility.write_file = function(file_name, ...)
local text = table.concat{...}
return utility.open(file_name, "w", function(file) return utility.open(file_name, "w", function(file)
file:write(table.concat{...}) file:write(text)
-- file:write("\n") -- I need to make sure /I/ handle this instead of trying to automate it -- file:write("\n") -- I need to make sure /I/ handle this instead of trying to automate it
end) end)
end end
+3 -3
View File
@@ -23,11 +23,11 @@ if not config.models then
end end
log{ log{
-- info = true, info = true,
-- warning = true, warning = true,
-- debug = true, -- debug = true,
-- files = true, -- debugging why the wrong files are selected -- files = true, -- debugging why the wrong files are selected
sha = true, -- what the fuck is going on with sha sums? -- sha = true, -- what the fuck is going on with sha sums?
} }
local memory_path = "PRIVATE_DATA" .. utility.path_separator .. "memory" local memory_path = "PRIVATE_DATA" .. utility.path_separator .. "memory"