aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 14:57:26 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-25 14:57:26 -0800
commit89addaa7a52e46014a3c6996ca3a093e9f5fd4d0 (patch)
tree3b53e6b781149d29bcdc9e33e4e0b0a4947b55b2 /scripts
parenta8a20f1a1338ecc5ebb0575135b820b06479ae15 (diff)
downloadvcpkg-89addaa7a52e46014a3c6996ca3a093e9f5fd4d0.tar.gz
vcpkg-89addaa7a52e46014a3c6996ca3a093e9f5fd4d0.zip
VcpkgInvokeCommand: return the error code
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VcpkgPowershellUtils.ps12
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1
index 3ca540874..06fc458f7 100644
--- a/scripts/VcpkgPowershellUtils.ps1
+++ b/scripts/VcpkgPowershellUtils.ps1
@@ -174,6 +174,7 @@ function vcpkgInvokeCommand()
Wait-Process -InputObject $process
$ec = $process.ExitCode
Write-Verbose "Execution terminated with exit code $ec."
+ return $ec
}
function vcpkgInvokeCommandClean()
@@ -193,4 +194,5 @@ function vcpkgInvokeCommandClean()
Wait-Process -InputObject $process
$ec = $process.ExitCode
Write-Verbose "Execution terminated with exit code $ec."
+ return $ec
} \ No newline at end of file