Fetch config from proper section

This commit is contained in:
Manuel Thalmann 2024-08-23 19:24:49 +02:00
parent b2541dab68
commit 70b3768ec2

View file

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