From 7189342f8f99c932ba20513fdb0575b26b47278b Mon Sep 17 00:00:00 2001 From: Romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sun, 16 Jan 2022 23:50:28 +0100 Subject: [PATCH] Update winget-upgrade.ps1 --- winget-update/winget-upgrade.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winget-update/winget-upgrade.ps1 b/winget-update/winget-upgrade.ps1 index aa12b50..4313254 100644 --- a/winget-update/winget-upgrade.ps1 +++ b/winget-update/winget-upgrade.ps1 @@ -106,7 +106,10 @@ function Get-WingetOutdated { return } - & $upgradecmd list --accept-source-agreements + #Accept sources + & $upgradecmd upgrade * --accept-source-agreements | Out-Null + + #List updates $upgradeResult = & $upgradecmd upgrade | Out-String if (!($upgradeResult -match "-----")){