Skip to content

Commit 7bf2947

Browse files
committed
Fix fetching the SDK version
1 parent c6e8c2b commit 7bf2947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ if not exist "%PHP_BUILD_OBJ_DIR%" (
1313
mkdir "%PHP_BUILD_OBJ_DIR%"
1414
)
1515

16+
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a
1617
if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
1718
echo Cloning remote SDK repository
1819
git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
1920
) else (
20-
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a
2121
echo Got SDK version %GOT_SDK_VER%
2222
if NOT "%GOT_SDK_VER%" == "%PHP_BUILD_SDK_BRANCH:~8%" (
2323
echo Updating to the configured SDK version %SDK_BRANCH:~8%

0 commit comments

Comments
 (0)