diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-12-18 14:06:01 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-01-03 08:33:19 +0000 |
commit | 5fa40393c53ce40232e4f25281d8797079910bae (patch) | |
tree | cc16c88c9168c0b18b95c7842ac1de0d3ef429c7 /coin/provisioning/common | |
parent | cb327e54bd3278aacf160ec20ec0c4fc135616c2 (diff) |
Apply path changes to running process
SetEnvironment only applies changes to PATH for new processes. Currently
the provisioning runs the scripts in one process, hence changes are not
applied when they are already needed.
Change-Id: I82a360686651a57e5c94330a9b56671fca1493e5
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'coin/provisioning/common')
-rw-r--r-- | coin/provisioning/common/helpers.ps1 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/coin/provisioning/common/helpers.ps1 b/coin/provisioning/common/helpers.ps1 index f6a9fd90..ff781b6c 100644 --- a/coin/provisioning/common/helpers.ps1 +++ b/coin/provisioning/common/helpers.ps1 @@ -116,6 +116,7 @@ function Add-Path $oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine') [Environment]::SetEnvironmentVariable("Path", $oldPath + ";$Path", [EnvironmentVariableTarget]::Machine) + $Env:PATH = [System.Environment]::GetEnvironmentVariable('Path', 'Machine') } function is64bitWinHost |