diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/fetchDependency.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1 index f90a51290..b185336f5 100644 --- a/scripts/fetchDependency.ps1 +++ b/scripts/fetchDependency.ps1 @@ -145,9 +145,9 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency) # Using this to wait for the execution to finish function Invoke-Command() { - param ( [string]$program = $(throw "Please specify a program" ), - [string]$argumentString = "", - [switch]$waitForExit ) + param ( [Parameter(Mandatory=$true)][string]$program, + [string]$argumentString = "", + [switch]$waitForExit = $false ) $psi = new-object "Diagnostics.ProcessStartInfo" $psi.FileName = $program |
