diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-11-26 17:37:37 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-11-26 17:37:37 +0000 |
commit | 4e53685bed60e2163ea499385448c255ce5949a7 (patch) | |
tree | 165c6cc9793bf8b8ac54793b0ef3efbef76e43a3 /provisioning-model.lua | |
parent | 9b6c13ad6c1942b8d2a81c510d3cbf4da398baa7 (diff) | |
download | acf-provisioning-4e53685bed60e2163ea499385448c255ce5949a7.tar.bz2 acf-provisioning-4e53685bed60e2163ea499385448c255ce5949a7.tar.xz |
Fixed writing of template to remove dos formatting.
Diffstat (limited to 'provisioning-model.lua')
-rw-r--r-- | provisioning-model.lua | 2 |
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) |