From 4e69844b4a750b114dbfe8d0b3f0bf6502f2a503 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Wed, 21 Jun 2023 18:15:25 +0200 Subject: [PATCH] fix for app detection on version like x.x.0.0 --- Winget-AutoUpdate/functions/Confirm-Installation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/functions/Confirm-Installation.ps1 b/Winget-AutoUpdate/functions/Confirm-Installation.ps1 index 2f5fed2..e96b66d 100644 --- a/Winget-AutoUpdate/functions/Confirm-Installation.ps1 +++ b/Winget-AutoUpdate/functions/Confirm-Installation.ps1 @@ -16,7 +16,7 @@ Function Confirm-Installation ($AppName, $AppVer){ Remove-Item $JsonFile -Force # Search for specific app and version - $Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppName -and $_.Version -eq $AppVer} + $Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppName -and $_.Version -like "$AppVer*"} if ($Apps){ return $true