minor changes

- Added "--all" in case several apps retrun same ID:
pull/2/head
Romain 2022-02-03 12:18:21 +01:00 committed by GitHub
parent dc9f726eeb
commit 9c1cdd79a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ if (Test-Network){
#Winget upgrade #Winget upgrade
Write-Log "------ Winget - $($app.Name) Upgrade Starts ------" "Gray" Write-Log "------ Winget - $($app.Name) Upgrade Starts ------" "Gray"
& $upgradecmd upgrade -e --id $($app.Id) --accept-package-agreements --accept-source-agreements -h & $upgradecmd upgrade --id $($app.Id) --all --accept-package-agreements --accept-source-agreements -h
Write-Log "----- Winget - $($app.Name) Upgrade Finished -----" "Gray" Write-Log "----- Winget - $($app.Name) Upgrade Finished -----" "Gray"
#Check installed version #Check installed version