mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Allow parameters to be passed for uninstall (required by some packages) (#2269)
This commit is contained in:
parent
c56da672d1
commit
efb29d6436
1 changed files with 5 additions and 0 deletions
|
@ -288,6 +288,11 @@ Function Choco-Uninstall
|
||||||
$cmd += " -force"
|
$cmd += " -force"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($packageparams)
|
||||||
|
{
|
||||||
|
$cmd += " -params '$packageparams'"
|
||||||
|
}
|
||||||
|
|
||||||
$results = invoke-expression $cmd
|
$results = invoke-expression $cmd
|
||||||
|
|
||||||
if ($LastExitCode -notin $successexitcodes)
|
if ($LastExitCode -notin $successexitcodes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue