Skip to content

Commit c6e8c2b

Browse files
committed
Fix SDK version comparison and add more verbosity
1 parent 591e811 commit c6e8c2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

appveyor/build.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
1818
git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
1919
) else (
2020
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a
21-
if "%GOT_SDK_VER%" NEQ "%SDK_BRANCH:~8%" (
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%
2224
echo Fetching remote SDK repository
2325
git --git-dir="%PHP_BUILD_CACHE_SDK_DIR%\.git" --work-tree="%PHP_BUILD_CACHE_SDK_DIR%" fetch --prune origin 2>&1
2426
echo Checkout SDK repository branch

0 commit comments

Comments
 (0)