summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitexporter.lua2
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