We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a7f17 commit ef97a8dCopy full SHA for ef97a8d
functions/private/Test-WinUtilPackageManager.ps1
@@ -56,7 +56,7 @@ function Test-WinUtilPackageManager {
56
# Check if Winget's Version is too old.
57
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
58
# Grabs the latest release of Winget from the Github API for version check process.
59
- $response = winget search -e Microsoft.AppInstaller
+ $response = winget search -e Microsoft.AppInstaller --accept-source-agreements
60
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
61
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
62
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White
0 commit comments