File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ if not exist "%PHP_BUILD_OBJ_DIR%" (
13
13
mkdir " %PHP_BUILD_OBJ_DIR% "
14
14
)
15
15
16
- for /f " tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR% \VERSION') do set GOT_SDK_VER = %%a
17
16
if not exist " %PHP_BUILD_CACHE_SDK_DIR% " (
18
17
echo Cloning remote SDK repository
19
18
git clone --branch %SDK_BRANCH% %SDK_REMOTE% " %PHP_BUILD_CACHE_SDK_DIR% " 2 >& 1
20
- ) else (
21
- echo Got SDK version %GOT_SDK_VER%
22
- if NOT " %GOT_SDK_VER% " == " %PHP_BUILD_SDK_BRANCH:~8 % " (
23
- echo Updating to the configured SDK version %SDK_BRANCH:~8 %
24
- echo Fetching remote SDK repository
25
- git --git-dir=" %PHP_BUILD_CACHE_SDK_DIR% \.git" --work-tree=" %PHP_BUILD_CACHE_SDK_DIR% " fetch --prune origin 2 >& 1
26
- echo Checkout SDK repository branch
27
- git --git-dir=" %PHP_BUILD_CACHE_SDK_DIR% \.git" --work-tree=" %PHP_BUILD_CACHE_SDK_DIR% " checkout --force %SDK_BRANCH%
28
- )
19
+ )
20
+
21
+ for /f " tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR% \VERSION') do set GOT_SDK_VER = %%a
22
+ echo Got SDK version %GOT_SDK_VER%
23
+ if NOT " %GOT_SDK_VER% " == " %PHP_BUILD_SDK_BRANCH:~8 % " (
24
+ echo Updating to the configured SDK version %SDK_BRANCH:~8 %
25
+ echo Fetching remote SDK repository
26
+ git --git-dir=" %PHP_BUILD_CACHE_SDK_DIR% \.git" --work-tree=" %PHP_BUILD_CACHE_SDK_DIR% " fetch --prune origin 2 >& 1
27
+ echo Checkout SDK repository branch
28
+ git --git-dir=" %PHP_BUILD_CACHE_SDK_DIR% \.git" --work-tree=" %PHP_BUILD_CACHE_SDK_DIR% " checkout --force %SDK_BRANCH%
29
29
)
30
30
31
31
set SDK_RUNNER = %PHP_BUILD_CACHE_SDK_DIR% \phpsdk-vc14-%PLATFORM% .bat
You can’t perform that action at this time.
0 commit comments