Redirect parameters using args
This commit is contained in:
parent
68e679224f
commit
14b0ffe24b
47 changed files with 75 additions and 366 deletions
scripts/Common/Software/posh-git
|
@ -1,15 +1,5 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../PowerShell/Module.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
$parameters = Get-ModuleInstallerComponents "posh-git";
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
Start-SoftwareInstaller @args @parameters;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue