mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-21 09:02:30 +08:00
hide possible file write confilct
This commit is contained in:
parent
4378741aad
commit
ea6e18c834
2
vendor/lib/lib_git.cmd
vendored
2
vendor/lib/lib_git.cmd
vendored
@ -49,7 +49,7 @@ exit /b
|
|||||||
|
|
||||||
:: get the git version in the provided directory
|
:: get the git version in the provided directory
|
||||||
|
|
||||||
"%git_executable%" --version > "%temp%\git_version.txt"
|
"%git_executable%" --version 2>nul > "%temp%\git_version.txt"
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
for /F "tokens=1,2,3 usebackq" %%A in (`type "%temp%\git_version.txt" 2^>nul`) do (
|
for /F "tokens=1,2,3 usebackq" %%A in (`type "%temp%\git_version.txt" 2^>nul`) do (
|
||||||
if /i "%%A %%B" == "git version" (
|
if /i "%%A %%B" == "git version" (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user