Add Winget output to log file

For better troubleshoot, the winget command output is now saved in the log file.
pull/10/head
Romain 2022-02-21 18:56:41 +01:00 committed by GitHub
parent 4c24271d27
commit f48aff87f6
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 #Winget upgrade
Write-Log "------ Winget - $($app.Name) Upgrade Starts ------" "Gray" 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" Write-Log "----- Winget - $($app.Name) Upgrade Finished -----" "Gray"
#Check installed version #Check installed version