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

gluon-config-mode-core: don't throw error when no config mode modules are installed

The expert mode can still be useful without any cohfig mode modules.
parent fca6cb81
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,12 @@ local util = require "nixio.util"
local f, s
local wizard = {}
local files = util.consume(fs.dir(wizard_dir))
local files = {}
table.sort(files)
if fs.access(wizard_dir) then
files = util.consume(fs.dir(wizard_dir))
table.sort(files)
end
for _, entry in ipairs(files) do
if entry:sub(1, 1) ~= '.' then
......
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