Update winget-upgrade.ps1
parent
4d7a7a8024
commit
7189342f8f
|
@ -106,7 +106,10 @@ function Get-WingetOutdated {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
& $upgradecmd list --accept-source-agreements
|
#Accept sources
|
||||||
|
& $upgradecmd upgrade * --accept-source-agreements | Out-Null
|
||||||
|
|
||||||
|
#List updates
|
||||||
$upgradeResult = & $upgradecmd upgrade | Out-String
|
$upgradeResult = & $upgradecmd upgrade | Out-String
|
||||||
|
|
||||||
if (!($upgradeResult -match "-----")){
|
if (!($upgradeResult -match "-----")){
|
||||||
|
|
Loading…
Reference in New Issue