mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
50f2313b47
commit
69ade22243
1 changed files with 4 additions and 0 deletions
|
@ -101,6 +101,10 @@ Function Choco-IsInstalled
|
||||||
[string]$package
|
[string]$package
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ($package -eq "all") {
|
||||||
|
return $true
|
||||||
|
}
|
||||||
|
|
||||||
$cmd = "$executable list --local-only --exact $package"
|
$cmd = "$executable list --local-only --exact $package"
|
||||||
$output = invoke-expression $cmd
|
$output = invoke-expression $cmd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue