From 7bf2947016dc840fcc2dcef8ef4f2003f00f7aef Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 30 Oct 2017 11:28:32 +0100 Subject: [PATCH] Fix fetching the SDK version --- appveyor/build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor/build.bat b/appveyor/build.bat index 8119c097f4..e18b9a3dbb 100644 --- a/appveyor/build.bat +++ b/appveyor/build.bat @@ -13,11 +13,11 @@ if not exist "%PHP_BUILD_OBJ_DIR%" ( mkdir "%PHP_BUILD_OBJ_DIR%" ) +for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a if not exist "%PHP_BUILD_CACHE_SDK_DIR%" ( echo Cloning remote SDK repository 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 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% -- 2.40.0