Fix WinGet source diagnostics
This commit is contained in:
parent
52b1ea5289
commit
8eacab5f7b
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue