mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
Merge branch 'main' of https://github.com/ChrisTitusTech/winutil
This commit is contained in:
commit
f8db21bbee
@ -37,6 +37,12 @@ Describe "Config Files" -ForEach @(
|
|||||||
$result = New-Object System.Collections.Generic.List[System.Object]
|
$result = New-Object System.Collections.Generic.List[System.Object]
|
||||||
Foreach ($application in $applications) {
|
Foreach ($application in $applications) {
|
||||||
$compare = $global:importedconfigs.$name.$application | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name
|
$compare = $global:importedconfigs.$name.$application | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name
|
||||||
|
if (-not $compare) {
|
||||||
|
throw "Comparison object for application '$application' is null."
|
||||||
|
}
|
||||||
|
if (-not $template) {
|
||||||
|
throw "Template object for application '$application' is null."
|
||||||
|
}
|
||||||
if ($(Compare-Object $compare $template) -ne $null) {
|
if ($(Compare-Object $compare $template) -ne $null) {
|
||||||
$result.Add($application)
|
$result.Add($application)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user