Use the new commands
This commit is contained in:
parent
a2d0c89424
commit
fe11ddf570
2 changed files with 3 additions and 17 deletions
scripts/Windows/Scripts
|
@ -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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue