mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 04:24:01 +01:00
Update check-apps.ps1
This commit is contained in:
parent
96b934e417
commit
1bfce0a4e4
@ -15,8 +15,10 @@ try {
|
||||
if ($IsLinux) {
|
||||
# TODO
|
||||
} else {
|
||||
Write-Progress "Querying installed apps and available updates..."
|
||||
Write-Progress "⏳ (1/2) Querying installed applications..."
|
||||
$NumAppsInstalled = (Get-AppxPackage).Count
|
||||
|
||||
Write-Progress "⏳ (2/2) Querying available updates..."
|
||||
$NumUpdates = (winget upgrade).Count - 5
|
||||
"✅ $NumAppsInstalled apps installed, $NumUpdates updates available"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user