mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-14 05:32:32 +08:00
switch to debug output
This commit is contained in:
parent
063f30c193
commit
b8890ed297
7
vendor/lib/lib_git.cmd
vendored
7
vendor/lib/lib_git.cmd
vendored
@ -45,7 +45,11 @@ exit /b
|
||||
%lib_console% debug-output :read_version "Env Var - git_executable=%git_executable%"
|
||||
|
||||
:: check if the executable actually exists
|
||||
if exist "%git_executable%" (
|
||||
if not exist "%git_executable%" (
|
||||
%lib_console% debug-output :reda_version "%git_executable% does not exist."
|
||||
exit /b -255
|
||||
)
|
||||
|
||||
:: get the git version in the provided directory
|
||||
for /F "tokens=1,2,3 usebackq" %%A in (`"%git_executable%" --version 2^>nul`) do (
|
||||
if /i "%%A %%B" == "git version" (
|
||||
@ -57,7 +61,6 @@ exit /b
|
||||
exit /b
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
endlocal & set GIT_VERSION%~1=!GIT_VERSION%~1!
|
||||
exit /b
|
||||
|
Loading…
x
Reference in New Issue
Block a user