remove .data from the main upgrade

add log for excluded / included apps
pull/580/head
Nick Brown 2024-03-07 10:55:06 +00:00 committed by GitHub
parent 7bbc406706
commit 6a8215e39c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -245,7 +245,8 @@ if (Test-Network) {
New-Item "$WorkingDir\logs\error.txt" -Value "Whitelist doesn't exist in GPO" -Force New-Item "$WorkingDir\logs\error.txt" -Value "Whitelist doesn't exist in GPO" -Force
Exit 1 Exit 1
} }
$toUpdate = $toUpdate.Data $toUpdate = $toUpdate
foreach ($app in $toUpdate) { Write-ToLog "Include app ${app}" }
} }
else { else {
$BlackList = $toSkip.GetUpperBound(0) $BlackList = $toSkip.GetUpperBound(0)
@ -254,7 +255,8 @@ if (Test-Network) {
New-Item "$WorkingDir\logs\error.txt" -Value "Blacklist doesn't exist in GPO" -Force New-Item "$WorkingDir\logs\error.txt" -Value "Blacklist doesn't exist in GPO" -Force
Exit 1 Exit 1
} }
$toSkip = $toSkip.Data $toSkip = $toSkip
foreach ($app in $toSkip) { Write-ToLog "Exclude app ${app}" }
} }
} }