Small fix when used under user context

pull/512/head
romanitho 2023-12-07 00:07:05 +01:00
parent 9277a18bc1
commit afcd19a429
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Function Confirm-Installation ($AppName, $AppVer) {
$Packages = $Json.Sources.Packages
#Remove json file
Remove-Item $JsonFile -Force
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*" }