Fixed issu when unknown updates are detected

pull/124/head
Romain 2022-07-07 17:02:41 +02:00 committed by GitHub
parent c773d1f24f
commit 6a0112bfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function Get-WingetOutdatedApps {
} }
#Split winget output to lines #Split winget output to lines
$lines = $upgradeResult.Split([Environment]::NewLine) | Where-Object { $_ } $lines = $upgradeResult.Split([Environment]::NewLine) | Where-Object { $_ -and $_ -notmatch "--include-unknown" }
# Find the line that starts with "------" # Find the line that starts with "------"
$fl = 0 $fl = 0