Fix incorrect installation filter
This commit is contained in:
parent
ec5ccfba2d
commit
7fed854044
|
@ -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 `
|
||||
|
|
Loading…
Reference in a new issue