Merge pull request #10 from Romanitho/log

Add Winget output to log file
pull/12/head
Romain 2022-02-21 19:10:39 +01:00 committed by GitHub
commit ffce65ce42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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