lualoader: cli: clobber loader_conf_files before proceeding

This makes sure that config.readConfFiles doesn't see a stale
loader_conf_files from before, in case the newly loaded file doesn't set it.

MFC after:	3 days
This commit is contained in:
Kyle Evans 2020-04-28 02:08:55 +00:00
parent e40d2a04ea
commit cc0380718e

View File

@ -127,6 +127,9 @@ end
cli['read-conf'] = function(...)
local _, argv = cli.arguments(...)
-- Don't trigger a reload of previously loaded loader_conf_files, in
-- case this config file doesn't set it.
loader.setenv("loader_conf_files", "")
config.readConfFiles(assert(core.popFrontTable(argv)), {})
end