From ee245f6225be587e4d8d48fff9dda1d0d98870b1 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:32:03 +0100 Subject: [PATCH] Keeping json file (for troubleshoot) --- Winget-AutoUpdate/functions/Confirm-Installation.ps1 | 3 --- 1 file changed, 3 deletions(-) diff --git a/Winget-AutoUpdate/functions/Confirm-Installation.ps1 b/Winget-AutoUpdate/functions/Confirm-Installation.ps1 index 0e83391..6d4d750 100644 --- a/Winget-AutoUpdate/functions/Confirm-Installation.ps1 +++ b/Winget-AutoUpdate/functions/Confirm-Installation.ps1 @@ -12,9 +12,6 @@ Function Confirm-Installation ($AppName, $AppVer) { #Get apps and version in hashtable $Packages = $Json.Sources.Packages - #Remove json file - Get-Item $JsonFile -ErrorAction SilentlyContinue | Remove-Item -Force - # Search for specific app and version $Apps = $Packages | Where-Object { $_.PackageIdentifier -eq $AppName -and $_.Version -like "$AppVer*" }