Skip to content
Snippets Groups Projects
Commit 040a68ee authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-alfred: some announce.lua cleanup

parent 8600a2f2
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ function collect_dir(dir) ...@@ -26,8 +26,8 @@ function collect_dir(dir)
for _, entry in ipairs(fs.dir(dir)) do for _, entry in ipairs(fs.dir(dir)) do
if entry:sub(1, 1) ~= '.' then if entry:sub(1, 1) ~= '.' then
err, val = pcall(collect_entry, dir .. '/' .. entry) local ok, val = pcall(collect_entry, dir .. '/' .. entry)
if err then if ok then
ret[entry] = val ret[entry] = val
else else
io.stderr:write(val, '\n') io.stderr:write(val, '\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment