We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cf2122 commit 37498f9Copy full SHA for 37498f9
.github/scripts/windows/find-target-branch.bat
@@ -1,13 +1,4 @@
1
@echo off
2
3
-findstr /m "PHP_VERSION_ID 800" %~dp0..\..\..\main\php_version.h >nul 2>&1
4
-if %errorlevel% equ 0 (
5
- set BRANCH=8.0
6
- goto :eof
7
-)
8
-findstr /m "PHP_VERSION_ID 810" %~dp0..\..\..\main\php_version.h >nul 2>&1
9
10
- set BRANCH=8.1
11
12
13
-set BRANCH=master
+for /f "usebackq tokens=3" %%i in (`findstr PHP_MAJOR_VERSION main\php_version.h`) do set BRANCH=%%i
+for /f "usebackq tokens=3" %%i in (`findstr PHP_MINOR_VERSION main\php_version.h`) do set BRANCH=%BRANCH%.%%i
0 commit comments