diff options
author | gpcf <gpcf@gpcf.eu> | 2024-10-15 22:37:09 +0200 |
---|---|---|
committer | gpcf <gpcf@gpcf.eu> | 2024-10-15 22:37:09 +0200 |
commit | 517989db056d42ef497527e4c1f1a385629285fc (patch) | |
tree | 3c078cbb0f4fd349fb925d0384fb3e544633e8c4 | |
parent | 524e116bf6510dcfa35a0cbe46500a9e6d0b28f6 (diff) | |
download | advtrains_gitexporter-517989db056d42ef497527e4c1f1a385629285fc.tar.gz advtrains_gitexporter-517989db056d42ef497527e4c1f1a385629285fc.tar.bz2 advtrains_gitexporter-517989db056d42ef497527e4c1f1a385629285fc.zip |
-rw-r--r-- | gitexporter.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitexporter.lua b/gitexporter.lua index c2af114..97417ae 100644 --- a/gitexporter.lua +++ b/gitexporter.lua @@ -52,11 +52,13 @@ for env, data in pairs(tb.envs) do ensure_dir(pth) f = io.open(pth.."/init_code.lua", "w") f:write(data.init_code) + f:close() end for k, j in pairs(tb.active.nodes) do f = io.open(node_file(j.env,k), "w") if f then f:write(j.code or "") + f:close() end end |