summaryrefslogtreecommitdiffstats
path: root/provisioning-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-model.lua')
-rw-r--r--provisioning-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/provisioning-model.lua b/provisioning-model.lua
index 744d66d..ffc52e9 100644
--- a/provisioning-model.lua
+++ b/provisioning-model.lua
@@ -337,7 +337,7 @@ update_template = function(template, create)
end
runsqlcommand(sql)
- fs.write_file(template.value.filename.value, template.value.filecontent.value)
+ fs.write_file(template.value.filename.value, string.gsub(format.dostounix(template.value.filecontent.value), "\n+$", ""))
end
if connected then databasedisconnect() end
end)