chore(auto-update): Update Winget sources before upgrading all apps

main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent fd1c60f7bf
commit ab7d01ed8a
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -111,6 +111,7 @@ function Main() {
Remove-Item -Path "$env:TEMP\Win-DT-Logs\*" -Include "WingetDailyUpgrade_*.log"
Start-Transcript -Path "$env:TEMP\Win-DT-Logs\WingetDailyUpgrade_$(Get-Date -Format "yyyy-MM-dd_HH-mm-ss").log"
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force # Only needed to run Winget
winget source update --disable-interactivity
winget upgrade --all --silent | Out-Host
Stop-Transcript
}

Loading…
Cancel
Save