Add Winget output to log file
For better troubleshoot, the winget command output is now saved in the log file.pull/10/head
parent
4c24271d27
commit
f48aff87f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue