Fetch config from proper section
This commit is contained in:
parent
384b90b8d2
commit
c8aba026e0
|
@ -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";
|
||||
}
|
||||
|
||||
<#
|
||||
|
|
Loading…
Reference in a new issue