Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #38

Merged
merged 2 commits into from
Jan 6, 2024
Merged

Dev #38

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WinGet-Essentials/WinGet-Essentials.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'WinGet-Essentials.psm1'
ModuleVersion = '1.10.0'
ModuleVersion = '1.10.1'
GUID = '2a2b6c24-d6cc-4d59-a456-e7ccd90afd03'
Author = 'Jon Carrier'
CompanyName = 'Unknown'
Expand Down
7 changes: 4 additions & 3 deletions WinGet-Essentials/modules/WinGet-Update.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ function Get-WinGetSoftwareUpgrade
}
}

if (-not($cached))
{
if (-not($cached)) {
$lastLineRegex = "\d+ upgrades available\."
$splitIndex = ($response | Select-String $lastLineRegex).LineNumber
$upgrades = $response | ConvertFrom-TextTable -LastLineRegEx $lastLineRegex
$lastLineRegex = "\d+ package\(s\)"
$upgrades += $response[$splitIndex..($response.Count-1)] | ConvertFrom-TextTable -LastLineRegEx $lastLineRegex
if ($splitIndex -le ($response.Count-1)) {
$upgrades += $response[$splitIndex..($response.Count-1)] | ConvertFrom-TextTable -LastLineRegEx $lastLineRegex
}

if ($UseIgnores) {
$upgrades = $upgrades | Where-Object {
Expand Down