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/git
|
@ -1,17 +1,8 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param(
|
||||
[hashtable] $Parameters
|
||||
)
|
||||
|
||||
$configure = {
|
||||
param(
|
||||
[string] $User
|
||||
|
@ -100,9 +91,9 @@ param (
|
|||
}
|
||||
};
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
& $configure;
|
||||
& $configure @args;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
param(
|
||||
|
@ -111,4 +102,4 @@ param (
|
|||
|
||||
& $configure -User $Arguments.Name;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue