From a34617ca25c3aa14d6053fbcb13c75df9049167d Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Wed, 20 Mar 2019 18:21:29 +0100 Subject: [PATCH] gluon-hoodselector util.lua: replace i iterator with _ Signed-off-by: Jan-Tarek Butt --- .../gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua index 833f461d..175f10ab 100644 --- a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua +++ b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua @@ -140,7 +140,7 @@ function M.restart_services() "gluon-respondd", } - for i, proc in ipairs(proc_tbl) do + for _, proc in ipairs(proc_tbl) do if unistd.access("/etc/init.d/"..proc, "x") == 0 then print(proc.." restarting ...") os.execute("/etc/init.d/"..proc.." restart")