Add trim back to the block/whitelist generator

pull/580/head
Nick Brown 2024-03-08 12:01:29 +00:00 committed by GitHub
parent 6a8215e39c
commit e265146a0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function Get-ExcludedApps {
$AppIDs = @() $AppIDs = @()
foreach ($ValueName in $ValueNames) { foreach ($ValueName in $ValueNames) {
$AppIDs += (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\BlackList" -Name $ValueName) $AppIDs += (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\BlackList" -Name $ValueName).Trim()
} }
} }

View File

@ -13,7 +13,7 @@ function Get-IncludedApps {
$AppIDs = @() $AppIDs = @()
foreach ($ValueName in $ValueNames) { foreach ($ValueName in $ValueNames) {
$AppIDs += (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\WhiteList" -Name $ValueName) $AppIDs += (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Romanitho\Winget-AutoUpdate\WhiteList" -Name $ValueName).Trim()
} }
} }