From b6ce7a9758d95183eb5b6d0595eec11e6b1c5d39 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 5 Jul 2023 15:10:01 +0200 Subject: [PATCH] Update check-apps.ps1 and list-updates.ps1 --- Scripts/check-apps.ps1 | 5 +++-- Scripts/list-updates.ps1 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Scripts/check-apps.ps1 b/Scripts/check-apps.ps1 index 3aea33bd..e14d5654 100755 --- a/Scripts/check-apps.ps1 +++ b/Scripts/check-apps.ps1 @@ -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 -} \ No newline at end of file +} diff --git a/Scripts/list-updates.ps1 b/Scripts/list-updates.ps1 index d99b162d..41fce733 100755 --- a/Scripts/list-updates.ps1 +++ b/Scripts/list-updates.ps1 @@ -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..."