mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-15 00:09:11 +08:00
Simpliefied the generation of path and name
This commit is contained in:
parent
3f18f812e3
commit
f4f0de85fd
@ -8,14 +8,8 @@ pushd %CD%
|
|||||||
cd /d "%CMDER_ROOT%\bin"
|
cd /d "%CMDER_ROOT%\bin"
|
||||||
|
|
||||||
for /d %%D in (*) do (
|
for /d %%D in (*) do (
|
||||||
set hasexe=
|
:: Check for existence of folders in bin
|
||||||
:: Check for existence of folders with executables in \bin
|
set PATH=!PATH!;%CD%\%%D
|
||||||
if exist "%%D\*.exe" set hasexe=true
|
|
||||||
if exist "%%D\*.bat" set hasexe=true
|
|
||||||
if "!hasexe!" == "true" (
|
|
||||||
set PATH=!PATH!;%CD%\%%D
|
|
||||||
)
|
|
||||||
|
|
||||||
:: Find all \bin\*\bin and also add them
|
:: Find all \bin\*\bin and also add them
|
||||||
if exist "%%D\bin" (
|
if exist "%%D\bin" (
|
||||||
set PATH=!PATH!;%CD%\%%D\bin
|
set PATH=!PATH!;%CD%\%%D\bin
|
Loading…
Reference in New Issue
Block a user