Fix incorrect installation filter

This commit is contained in:
Manuel Thalmann 2024-08-07 23:20:28 +02:00
parent ec5ccfba2d
commit 7fed854044

View file

@ -61,7 +61,7 @@ $null = New-Module {
)
foreach ($name in $Names) {
if ($Force.IsPresent -and -not (Test-WingetPackage $name)) {
if ($Force.IsPresent -or -not (Test-WingetPackage $name)) {
winget install `
--accept-source-agreements --accept-package-agreements `
--source winget `