From 345a5de86152e88bd5785cc6588c4797e7dd7ba9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 15 Feb 2018 18:43:49 +0100 Subject: [PATCH] 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. --- package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua index ff61f05b..fabfe05f 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/sysconfig.lua +++ b/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)