summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-09-14 11:57:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-09-14 11:57:37 -0400
commit67252ae737dce6a5721b8b8e94c19c151f47e30d (patch)
tree3b211109efc0a20cf8d5ab46b7ee49d3e6bfa04c /ci
parent5855fb070348265fc4b0a1ad10ee5a13683681b5 (diff)
downloadpython-coveragepy-git-67252ae737dce6a5721b8b8e94c19c151f47e30d.tar.gz
Use the better call-operator rather than start-process in powershell
Diffstat (limited to 'ci')
-rw-r--r--ci/install.ps16
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/install.ps1 b/ci/install.ps1
index f9934aa1..e5c27e95 100644
--- a/ci/install.ps1
+++ b/ci/install.ps1
@@ -153,7 +153,7 @@ function InstallPythonMSI ($msipath, $python_home, $install_log) {
function RunCommand ($command, $command_args) {
Write-Host $command $command_args
- Start-Process -FilePath $command -ArgumentList $command_args -Wait -Passthru
+ & $command $command_args
}
@@ -200,7 +200,7 @@ function InstallMiniconda ($python_version, $architecture, $python_home) {
$install_log = $python_home + ".log"
$args = "/S /D=$python_home"
Write-Host $filepath $args
- Start-Process -FilePath $filepath -ArgumentList $args -Wait -Passthru
+ & $filepath $args
if (Test-Path $python_home) {
Write-Host "Python $python_version ($architecture) installation complete"
} else {
@@ -218,7 +218,7 @@ function InstallMinicondaPip ($python_home) {
Write-Host "Installing pip..."
$args = "install --yes pip"
Write-Host $conda_path $args
- Start-Process -FilePath "$conda_path" -ArgumentList $args -Wait -Passthru
+ & "$conda_path" $args
} else {
Write-Host "pip already installed."
}