Browse Source

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.
Matthias Schiffer 6 years ago
parent
commit
345a5de861
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua

+ 1 - 1
package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua

@@ -13,7 +13,7 @@ end
 local function set(_, name, val)
 	if val then
 		local f = io.open(sysconfigdir .. name, 'w+')
-		f:write(val)
+		f:write(val, '\n')
 		f:close()
 	else
 		os.remove(sysconfigdir .. name)