Fetch config from proper section

This commit is contained in:
Manuel Thalmann 2024-08-23 19:24:49 +02:00
parent ba12d3dfdf
commit 15c9550abe

View file

@ -161,7 +161,7 @@ $null = New-Module {
Gets the name of the config root. Gets the name of the config root.
#> #>
function Get-ConfigRootName { function Get-ConfigRootName {
return "valhalla$($IsWindows ? ".windows" : '')"; return "valhalla.$($IsWindows ? "windows" : "linux")";
} }
<# <#
@ -408,7 +408,7 @@ $null = New-Module {
[string] $Name [string] $Name
) )
Get-Config "valhalla.software.$Name"; Get-Config "$(Get-ConfigRootName).software.$Name";
} }
<# <#