From 4d7a7a80249284ce23daea417c5b104c1e56ea80 Mon Sep 17 00:00:00 2001 From: Romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sun, 16 Jan 2022 20:22:15 +0100 Subject: [PATCH] Update winget-upgrade.ps1 --- winget-update/winget-upgrade.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/winget-update/winget-upgrade.ps1 b/winget-update/winget-upgrade.ps1 index 3fb165a..aa12b50 100644 --- a/winget-update/winget-upgrade.ps1 +++ b/winget-update/winget-upgrade.ps1 @@ -105,8 +105,9 @@ function Get-WingetOutdated { Write-Log "No Winget installed !" return } - - $upgradeResult = & $upgradecmd upgrade --accept-source-agreements | Out-String + + & $upgradecmd list --accept-source-agreements + $upgradeResult = & $upgradecmd upgrade | Out-String if (!($upgradeResult -match "-----")){ return