From 4320f28563fb662ac47e2a6ae56a0717de8a3d5d Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Thu, 14 Feb 2008 22:03:42 +0000 Subject: Getting menu and permission to start working together. Just test code most commented out. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@723 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/menubuilder.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua index ecdf9f1..1d4c974 100644 --- a/lib/menubuilder.lua +++ b/lib/menubuilder.lua @@ -63,7 +63,8 @@ get_menuitems = function (startdir) local fh = io.open(startdir .. "/" .. v) local prio = 10 for x in fh:lines() do - if not string.match(x, "^#") then + local c = string.match(x, "^#") or string.match(x,"^$") + if c == nil then local item = {} for i in string.gmatch(x, "%S+") do table.insert(item, i) -- cgit v1.2.3