aboutsummaryrefslogtreecommitdiff
path: root/scripts/VcpkgPowershellUtils.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 14:46:00 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 14:46:00 -0800
commita8a20f1a1338ecc5ebb0575135b820b06479ae15 (patch)
treea583031c0bb87b0d48cb2d5ffa6ecd9bb82a5032 /scripts/VcpkgPowershellUtils.ps1
parent7722798ecb3a49b46f494058c58ff41d9e31d2c4 (diff)
downloadvcpkg-a8a20f1a1338ecc5ebb0575135b820b06479ae15.tar.gz
vcpkg-a8a20f1a1338ecc5ebb0575135b820b06479ae15.zip
VcpkgInvokeCommand: remove paramter $wait
Diffstat (limited to 'scripts/VcpkgPowershellUtils.ps1')
-rw-r--r--scripts/VcpkgPowershellUtils.ps124
1 files changed, 8 insertions, 16 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1
index ec1e8b92b..3ca540874 100644
--- a/scripts/VcpkgPowershellUtils.ps1
+++ b/scripts/VcpkgPowershellUtils.ps1
@@ -167,24 +167,19 @@ function vcpkgExtractFile( [Parameter(Mandatory=$true)][string]$file,
function vcpkgInvokeCommand()
{
param ( [Parameter(Mandatory=$true)][string]$executable,
- [string]$arguments = "",
- [Parameter(Mandatory=$true)][switch]$wait)
+ [string]$arguments = "")
Write-Verbose "Executing: ${executable} ${arguments}"
$process = Start-Process -FilePath "`"$executable`"" -ArgumentList $arguments -PassThru -NoNewWindow
- if ($wait)
- {
- Wait-Process -InputObject $process
- $ec = $process.ExitCode
- Write-Verbose "Execution terminated with exit code $ec."
- }
+ Wait-Process -InputObject $process
+ $ec = $process.ExitCode
+ Write-Verbose "Execution terminated with exit code $ec."
}
function vcpkgInvokeCommandClean()
{
param ( [Parameter(Mandatory=$true)][string]$executable,
- [string]$arguments = "",
- [Parameter(Mandatory=$true)][switch]$wait)
+ [string]$arguments = "")
Write-Verbose "Clean-Executing: ${executable} ${arguments}"
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
@@ -195,10 +190,7 @@ function vcpkgInvokeCommandClean()
$arg = "-encodedCommand $encodedCommand"
$process = Start-Process -FilePath powershell.exe -ArgumentList $arg -PassThru -NoNewWindow
- if ($wait)
- {
- Wait-Process -InputObject $process
- $ec = $process.ExitCode
- Write-Verbose "Execution terminated with exit code $ec."
- }
+ Wait-Process -InputObject $process
+ $ec = $process.ExitCode
+ Write-Verbose "Execution terminated with exit code $ec."
} \ No newline at end of file