Browse Source

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.
Andrea Brancaleoni 4 years ago
parent
commit
2e2e9a3702
1 changed files with 2 additions and 2 deletions
  1. 2 2
      script/setup-win-for-dev.bat

+ 2 - 2
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