Skip to content
Snippets Groups Projects
Unverified Commit 345a5de8 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: add newline to the end of sysconfig files

Both gluon.sysconfig and libgluonutil already remove the trailing newline
if it exists. It's nicer to avoid files without a trailing newline, e.g.
for printing the file contents in a terminal.
parent 427c8375
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ end ...@@ -13,7 +13,7 @@ end
local function set(_, name, val) local function set(_, name, val)
if val then if val then
local f = io.open(sysconfigdir .. name, 'w+') local f = io.open(sysconfigdir .. name, 'w+')
f:write(val) f:write(val, '\n')
f:close() f:close()
else else
os.remove(sysconfigdir .. name) os.remove(sysconfigdir .. name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment