Fix incorrect parameter access

This commit is contained in:
Manuel Thalmann 2024-08-08 05:03:24 +02:00
parent e296fee797
commit b2619ea7a6
2 changed files with 2 additions and 2 deletions

View file

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

View file

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