From f4f0de85fdd74fa7629226231274bc3b523080de Mon Sep 17 00:00:00 2001 From: Samuel Vasko Date: Mon, 28 Apr 2014 14:41:15 +0200 Subject: [PATCH] Simpliefied the generation of path and name --- bin/{pathgen.bat => genpath.bat} | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) rename bin/{pathgen.bat => genpath.bat} (64%) diff --git a/bin/pathgen.bat b/bin/genpath.bat similarity index 64% rename from bin/pathgen.bat rename to bin/genpath.bat index 06a9cd4..7516dfd 100644 --- a/bin/pathgen.bat +++ b/bin/genpath.bat @@ -8,14 +8,8 @@ pushd %CD% cd /d "%CMDER_ROOT%\bin" for /d %%D in (*) do ( - set hasexe= - :: Check for existence of folders with executables in \bin - if exist "%%D\*.exe" set hasexe=true - if exist "%%D\*.bat" set hasexe=true - if "!hasexe!" == "true" ( - set PATH=!PATH!;%CD%\%%D - ) - + :: Check for existence of folders in bin + set PATH=!PATH!;%CD%\%%D :: Find all \bin\*\bin and also add them if exist "%%D\bin" ( set PATH=!PATH!;%CD%\%%D\bin