mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-11 16:00:21 +08:00
switch to debug output
This commit is contained in:
parent
063f30c193
commit
b8890ed297
25
vendor/lib/lib_git.cmd
vendored
25
vendor/lib/lib_git.cmd
vendored
@ -45,17 +45,20 @@ exit /b
|
|||||||
%lib_console% debug-output :read_version "Env Var - git_executable=%git_executable%"
|
%lib_console% debug-output :read_version "Env Var - git_executable=%git_executable%"
|
||||||
|
|
||||||
:: check if the executable actually exists
|
:: check if the executable actually exists
|
||||||
if exist "%git_executable%" (
|
if not exist "%git_executable%" (
|
||||||
:: get the git version in the provided directory
|
%lib_console% debug-output :reda_version "%git_executable% does not exist."
|
||||||
for /F "tokens=1,2,3 usebackq" %%A in (`"%git_executable%" --version 2^>nul`) do (
|
exit /b -255
|
||||||
if /i "%%A %%B" == "git version" (
|
)
|
||||||
set "GIT_VERSION_%~1=%%C"
|
|
||||||
%lib_console% debug-output :read_version "Env Var - GIT_VERSION_%~1=%%C"
|
:: get the git version in the provided directory
|
||||||
) else (
|
for /F "tokens=1,2,3 usebackq" %%A in (`"%git_executable%" --version 2^>nul`) do (
|
||||||
%lib_console% show_error "git --version" returned an inproper version string!
|
if /i "%%A %%B" == "git version" (
|
||||||
pause
|
set "GIT_VERSION_%~1=%%C"
|
||||||
exit /b
|
%lib_console% debug-output :read_version "Env Var - GIT_VERSION_%~1=%%C"
|
||||||
)
|
) else (
|
||||||
|
%lib_console% show_error "git --version" returned an inproper version string!
|
||||||
|
pause
|
||||||
|
exit /b
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user