Skip to content

Commit

Permalink
allow wildcard matching for excluded apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ztrhgf committed Feb 21, 2024
1 parent 059144f commit 721f22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ if (Test-Network) {
else {
#For each app, notify and update
foreach ($app in $outdated) {
if (-not ($toSkip -contains $app.Id) -and $($app.Version) -ne "Unknown") {
if (-not ($toSkip | ? { $app.Id -like $_ }) -and $($app.Version) -ne "Unknown") {
Update-App $app
}
#if current app version is unknown
Expand Down

0 comments on commit 721f22f

Please sign in to comment.