Use the new commands

This commit is contained in:
Manuel Thalmann 2024-08-01 18:36:47 +02:00
parent a2d0c89424
commit fe11ddf570
2 changed files with 3 additions and 17 deletions
scripts/Windows/Scripts

View file

@ -1,15 +0,0 @@
<#
.SYNOPSIS
Checks whether the specified package has been installed using Chocolatey.
.PARAMETER Name
The name of the package to check.
#>
function Test-ChocoSoftware {
[OutputType([bool])]
param(
[string] $Name
);
-not [string]::IsNullOrEmpty((choco list --limit-output --exact $name));
}