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