From 2e2e9a370259bd5f9da1fdf4ee8979bae317824c Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 11 Jun 2020 16:05:03 +0200 Subject: [PATCH] ci: use call instead of cmd /C (#23985) Since we want to import the environment change from RefreshEnv.cmd we also want to share the same execution context of the caller. --- script/setup-win-for-dev.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/setup-win-for-dev.bat b/script/setup-win-for-dev.bat index 6c8bb1bf6211..e2ee59f5abbb 100644 --- a/script/setup-win-for-dev.bat +++ b/script/setup-win-for-dev.bat @@ -71,11 +71,11 @@ SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" REM Install nodejs python git and yarn needed dependencies choco install -y nodejs python2 git yarn windows-sdk-10-version-1903-windbg -cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd +call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd SET PATH=C:\Python27\;C:\Python27\Scripts;%PATH% pip install pywin32 -cmd /c C:\ProgramData\chocolatey\bin\RefreshEnv.cmd +call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd pip2 install pywin32 REM Setup Depot Tools