From 721f22f722515ad20e17deafaf90e1a99800abd6 Mon Sep 17 00:00:00 2001 From: ztrhgf Date: Wed, 21 Feb 2024 08:42:14 +0100 Subject: [PATCH] allow wildcard matching for excluded apps --- Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 index 2019337..0a82652 100644 --- a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -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