Fix WinGet source diagnostics

This commit is contained in:
Dandaedre 2026-10-17 09:59:49 +02:00
parent 52b1ea5289
commit 8eacab5f7b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function Invoke-Doctor {
}
catch { Add-Check 'Data directory' $false $_.Exception.Message }
if (Get-Command winget.exe -ErrorAction SilentlyContinue) {
$sourceOutput = & winget.exe source list --disable-interactivity --accept-source-agreements 2>&1
$sourceOutput = & winget.exe source list --disable-interactivity 2>&1
Add-Check 'WinGet sources' ($LASTEXITCODE -eq 0) ($sourceOutput -join [Environment]::NewLine)
}
if (-not [string]::IsNullOrWhiteSpace($Machine)) {