Skip to content

Commit

Permalink
Fix SDK version comparison and add more verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Oct 30, 2017
1 parent 591e811 commit c6e8c2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appveyor/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
) else (
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a
if "%GOT_SDK_VER%" NEQ "%SDK_BRANCH:~8%" (
echo Got SDK version %GOT_SDK_VER%
if NOT "%GOT_SDK_VER%" == "%PHP_BUILD_SDK_BRANCH:~8%" (
echo Updating to the configured SDK version %SDK_BRANCH:~8%
echo Fetching remote SDK repository
git --git-dir="%PHP_BUILD_CACHE_SDK_DIR%\.git" --work-tree="%PHP_BUILD_CACHE_SDK_DIR%" fetch --prune origin 2>&1
echo Checkout SDK repository branch
Expand Down

0 comments on commit c6e8c2b

Please sign in to comment.