Fix incorrect parameter access
This commit is contained in:
parent
e296fee797
commit
b2619ea7a6
|
@ -9,7 +9,7 @@ param (
|
|||
$parameters = Get-ModuleInstallerComponents "Terminal-Icons";
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters.TryGetValue($key));
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
|
|
|
@ -9,7 +9,7 @@ param (
|
|||
$parameters = Get-ModuleInstallerComponents "posh-git";
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters.TryGetValue($key));
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
|
|
Loading…
Reference in a new issue