mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-10 15:39:07 +08:00
It is hard to spot without the brackets, but the last else block - that resets %test_dir% and logs in verbose mode that an older user git version will be ignored - can't actually be reached. The else block is considered to belong to the if clause "if exist "%test_dir:~0,-4%\cmd\git.exe"" that will only ever be executed if ERRORLEVEL is greather than or equal to 0, thus if the test fails, the following else if clause "else if ERRORLEVEL 0" will always succeed and the last else block will be ignored. Using the vendored git version may still have worked because %GIT_INSTALL_ROOT% isn't set either way, but to enable the log message I reordered if-else-clauses and brackets in the way I think the original author intended them to work. |
||
---|---|---|
.. | ||
bin | ||
lib | ||
psmodules | ||
clink_settings.default | ||
clink.lua | ||
cmder_exinit | ||
cmder.sh | ||
ConEmu.xml.default | ||
git-prompt.sh | ||
init.bat | ||
profile.ps1 | ||
Readme.md | ||
sources.json | ||
user_aliases.cmd.default | ||
user_profile.cmd.default | ||
user_profile.ps1.default | ||
user_profile.sh.default |
Vendor
Third parties software & init script.