1
0
Fork 0
forked from glenux/mfm

fix: delay config loading

This commit is contained in:
Glenn Y. Rolland 2023-11-18 23:35:54 +01:00
parent 1c184a5557
commit 5e8c46dfcf

View file

@ -88,12 +88,11 @@ module GX
end end
def run() def run()
@config.load_from_file
case @config.mode case @config.mode
when Config::Mode::ShowVersion when Config::Mode::ShowVersion
STDOUT.puts "#{PROGRAM_NAME} #{VERSION}" STDOUT.puts "#{PROGRAM_NAME} #{VERSION}"
when Config::Mode::Mount when Config::Mode::Mount
@config.load_from_file
mount mount
end end
end end