Merge pull request #124 from Romanitho/fix

Fixed issue when unknown updates are detected
pull/127/head
Romain 2022-07-07 17:04:36 +02:00 committed by GitHub
commit c9cf4f78ef
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
$lines = $upgradeResult.Split([Environment]::NewLine) | Where-Object { $_ }
$lines = $upgradeResult.Split([Environment]::NewLine) | Where-Object { $_ -and $_ -notmatch "--include-unknown" }
# Find the line that starts with "------"
$fl = 0