fix: fixed git initialization for project

chore: change write_file to take table instead of string
This commit is contained in:
DarthMooMancer
2025-05-11 14:19:49 -04:00
parent 674dd47dbc
commit 677e5bbc67
3 changed files with 6 additions and 7 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ function M.is_dir(path)
return stat and stat.type == "directory"
end
function M.write_file(path, content)
function M.write_file(path_segments, content)
local path = table.concat(path_segments, "/")
local file = assert(io.open(path, "w"), "Error creating file: " .. path)
file:write(content)
file:close()