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.
This commit is contained in:
parent
427c83754b
commit
345a5de861
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user