Fetch config from proper section

This commit is contained in:
Manuel Thalmann 2024-08-23 19:24:49 +02:00
parent 384b90b8d2
commit c8aba026e0

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";
} }
<# <#