gluon-hoodselector util.lua: replace i iterator with _
Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
parent
faf0dd6aa3
commit
a34617ca25
@ -140,7 +140,7 @@ function M.restart_services()
|
|||||||
"gluon-respondd",
|
"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
|
if unistd.access("/etc/init.d/"..proc, "x") == 0 then
|
||||||
print(proc.." restarting ...")
|
print(proc.." restarting ...")
|
||||||
os.execute("/etc/init.d/"..proc.." restart")
|
os.execute("/etc/init.d/"..proc.." restart")
|
||||||
|
Loading…
Reference in New Issue
Block a user