Get-WingetSystemApps if system

pull/172/head
romanitho 2022-10-04 01:10:44 +02:00
parent 8f39ea3ed1
commit e2dba10de6
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ function Get-WingetOutdatedApps {
$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 $_}
} }
else {
Get-WingetSystemApps
}
return $upgradeList | Sort-Object {Get-Random} return $upgradeList | Sort-Object {Get-Random}
} }