Redirect parameters using args

This commit is contained in:
Manuel Thalmann 2024-09-30 05:00:20 +02:00
parent 68e679224f
commit 14b0ffe24b
47 changed files with 75 additions and 366 deletions
scripts/Common/Software/posh-git

View file

@ -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;