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.
This commit is contained in:
Matthias Schiffer 2015-10-11 21:19:28 +02:00
parent fca6cb817f
commit 12f9df7e86

View File

@ -6,9 +6,12 @@ local util = require "nixio.util"
local f, s
local wizard = {}
local files = util.consume(fs.dir(wizard_dir))
local 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