mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-10 23:49:07 +08:00
fix git detection
This commit is contained in:
parent
8abfa9d413
commit
192c2f4dd1
6
vendor/lib/lib_git.cmd
vendored
6
vendor/lib/lib_git.cmd
vendored
@ -88,8 +88,11 @@ exit /b
|
|||||||
::: [SCOPE]_BUILD <out> Scoped Build version.
|
::: [SCOPE]_BUILD <out> Scoped Build version.
|
||||||
:::-------------------------------------------------------------------------------
|
:::-------------------------------------------------------------------------------
|
||||||
|
|
||||||
setlocal enabledelayedexpansion
|
|
||||||
:: process a `x.x.x.xxxx.x` formatted string
|
:: process a `x.x.x.xxxx.x` formatted string
|
||||||
|
set "%~1_MAJOR="
|
||||||
|
set "%~1_MINOR="
|
||||||
|
set "%~1_PATCH="
|
||||||
|
set "%~1_BUILD="
|
||||||
%lib_console% debug_output :parse_version "ARGV[1]=%~1, ARGV[2]=%~2"
|
%lib_console% debug_output :parse_version "ARGV[1]=%~1, ARGV[2]=%~2"
|
||||||
for /F "tokens=1-3* delims=.,-" %%A in ("%2") do (
|
for /F "tokens=1-3* delims=.,-" %%A in ("%2") do (
|
||||||
set "%~1_MAJOR=%%A"
|
set "%~1_MAJOR=%%A"
|
||||||
@ -98,7 +101,6 @@ exit /b
|
|||||||
set "%~1_BUILD=%%D"
|
set "%~1_BUILD=%%D"
|
||||||
)
|
)
|
||||||
|
|
||||||
endlocal & set "%~1_MAJOR=!%~1_MAJOR!" & set "%~1_MINOR=!%~1_MINOR!" & set "%~1_PATCH=!%~1_PATCH!" & set "%~1_BUILD=!%~1_BUILD!"
|
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
:validate_version
|
:validate_version
|
||||||
|
Loading…
Reference in New Issue
Block a user