Update winget-upgrade.ps1

pull/2/head
Romanitho 2022-01-16 20:22:15 +01:00 committed by GitHub
parent eb9d4c2beb
commit 4d7a7a8024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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