From 28835cf13c9c2df5cee894f01afd3b7f3b81579c Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 24 Mar 2025 13:46:54 +0100 Subject: [PATCH] Updated list-updates.ps1 --- scripts/list-updates.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/list-updates.ps1 b/scripts/list-updates.ps1 index 445fb1a8..5808a81a 100755 --- a/scripts/list-updates.ps1 +++ b/scripts/list-updates.ps1 @@ -4,13 +4,14 @@ .DESCRIPTION This PowerShell script queries the latest available software updates for the local machine and lists it. - NOTE: Use the script 'install-updates.ps1' to install the listed updates. + NOTE: Execute 'install-updates.ps1' to install the listed updates. .EXAMPLE PS> ./list-updates.ps1 + ⏳ Querying updates from Microsoft Store... - Name Id Version Available Source - ------------------------------------------------------------------------------ - Git Git.Git 2.43.0 2.44.0 winget + Name Id Version Available + ---------------------------------------------------------------- + Git Git.Git 2.43.0 2.44.0 ... .LINK https://github.com/fleschutz/PowerShell @@ -28,13 +29,12 @@ try { } elseif ($IsMacOS) { throw "Sorry, MacOS not supported yet" } else { - if (Get-Command winget -ErrorAction SilentlyContinue) { - Write-Host "`n⏳ Querying updates from WinGet Store..." -foregroundColor green - & winget upgrade --include-unknown --source=winget - } if (Get-Command winget -ErrorAction SilentlyContinue) { Write-Host "`n⏳ Querying updates from Microsoft Store..." -foregroundColor green & winget upgrade --include-unknown --source=msstore + + Write-Host "`n⏳ Querying updates from WinGet Store..." -foregroundColor green + & winget upgrade --include-unknown --source=winget } if (Get-Command choco -ErrorAction SilentlyContinue) { Write-Host "`n⏳ Querying updates from Chocolatey..." -foregroundColor green