Fixed App ID for User context system filter

pull/176/head
romanitho 2022-10-08 03:39:55 +02:00
parent 31732404f6
commit cbc269429e
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function Get-WingetOutdatedApps {
#If current user is not system, remove system apps from list #If current user is not system, remove system apps from list
if ($IsSystem -eq $false) { if ($IsSystem -eq $false) {
$SystemApps = Get-Content -Path "$WorkingDir\winget_system_apps.txt" $SystemApps = Get-Content -Path "$WorkingDir\winget_system_apps.txt"
$upgradeList = $upgradeList | Where-Object {$SystemApps -notcontains $_} $upgradeList = $upgradeList | Where-Object {$SystemApps -notcontains $_.Id}
} }
return $upgradeList | Sort-Object {Get-Random} return $upgradeList | Sort-Object {Get-Random}