From f1b5fbc615ad2df0ba88e8cd8b026715b5bf93c4 Mon Sep 17 00:00:00 2001 From: Tangent Date: Wed, 16 Sep 2026 17:59:24 -0600 Subject: [PATCH] Lua got confused by varargs --- lib/utility.lua | 3 ++- refresh_sources.lua | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/utility.lua b/lib/utility.lua index a2d9d38..cd6406c 100644 --- a/lib/utility.lua +++ b/lib/utility.lua @@ -280,8 +280,9 @@ utility.read_file = function(file_name) end utility.write_file = function(file_name, ...) + local text = table.concat{...} 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 end) end diff --git a/refresh_sources.lua b/refresh_sources.lua index 0bed99f..ab88a9d 100755 --- a/refresh_sources.lua +++ b/refresh_sources.lua @@ -23,11 +23,11 @@ if not config.models then end log{ - -- info = true, - -- warning = true, + info = true, + warning = true, -- debug = true, -- 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"