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:
parent
fca6cb817f
commit
12f9df7e86
@ -6,9 +6,12 @@ local util = require "nixio.util"
|
|||||||
local f, s
|
local f, s
|
||||||
|
|
||||||
local wizard = {}
|
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
|
for _, entry in ipairs(files) do
|
||||||
if entry:sub(1, 1) ~= '.' then
|
if entry:sub(1, 1) ~= '.' then
|
||||||
|
Loading…
Reference in New Issue
Block a user