glob both yml and yaml files

This commit is contained in:
onyx-and-iris 2023-08-02 14:15:21 +01:00
parent bb62f01b11
commit 8a4ddee37d

View File

@ -63,7 +63,7 @@ module Voicemeeter
@configpaths.each do |configpath|
if configpath.exist?
logger.debug "checking #{configpath} for configs"
filepaths = configpath.glob("*.yml")
filepaths = configpath.glob("*.{yaml,yml}")
filepaths.each do |filepath|
@filename = (filepath.basename.sub_ext "").to_s.to_sym