Get-WingetSystemApps if system
parent
8f39ea3ed1
commit
e2dba10de6
|
@ -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}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue