Skip to content

Commit ef97a8d

Browse files
[WinGet] Fix install loop (#3235)
Only this parameter was missing
1 parent 18a7f17 commit ef97a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/private/Test-WinUtilPackageManager.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Test-WinUtilPackageManager {
5656
# Check if Winget's Version is too old.
5757
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
5858
# Grabs the latest release of Winget from the Github API for version check process.
59-
$response = winget search -e Microsoft.AppInstaller
59+
$response = winget search -e Microsoft.AppInstaller --accept-source-agreements
6060
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
6161
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
6262
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White

0 commit comments

Comments
 (0)