Update check-apps.ps1 and list-updates.ps1

This commit is contained in:
Markus Fleschutz 2023-07-05 15:10:01 +02:00
parent fde2fff232
commit b6ce7a9758
2 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,8 @@
try {
if ($IsLinux) {
# TODO
$NumSnaps = (snap list).Count - 1
Write-Host "$($NumSnaps) snaps installed"
} else {
Write-Progress "⏳ Querying installed apps and updates..."
$Apps = Get-AppxPackage
@ -34,4 +35,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}

View File

@ -18,7 +18,7 @@ try {
& sudo apt update
& sudo apt list --upgradable
"⏳ (2/2) Querying Snap updates..."
sudo snap refresh --list
& sudo snap refresh --list
} else {
" "
Write-Progress "⏳ Querying available software updates..."