Skip to content

Commit b140db4

Browse files
committed
Merge branch 'development' of https://github.com/cmderdev/cmder into development
2 parents d15e7ac + cc40343 commit b140db4

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

vendor/lib/lib_path.cmd

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ exit /b
149149
exit /b
150150

151151
:enhance_path_recursive
152-
call :set_path_recursive "%~1" "%~2" "%~3"
153-
exit /b
152+
call :set_path_recursive "%~1" "%~2" "%~3"
153+
exit /b
154154

155155
:set_path_recursive
156156
:::===============================================================================
@@ -206,9 +206,9 @@ exit /b
206206
if "%fast_init%" == "1" (
207207
if "%add_to_path%" neq "" (
208208
if "%position%" == "append" (
209-
set "path=%path%;%add_to_path%"
209+
set "path=%path%;%add_to_path%"
210210
) else (
211-
set "path=%add_to_path%;%path%"
211+
set "path=%add_to_path%;%path%"
212212
)
213213
)
214214
)
@@ -227,9 +227,9 @@ exit /b
227227
if "%add_to_path%" neq "" (
228228
%print_debug% :set_path_recursive "Adding parent directory - '%add_to_path%'"
229229
if "%position%" == "append" (
230-
set "path=%path%;%add_to_path%"
230+
set "path=%path%;%add_to_path%"
231231
) else (
232-
set "path=%add_to_path%;%path%"
232+
set "path=%add_to_path%;%path%"
233233
)
234234
)
235235
call :set_depth
@@ -250,16 +250,9 @@ exit /b
250250
)
251251

252252
for /d %%i in ("%add_path%\*") do (
253-
<<<<<<< HEAD
254-
%print_debug% :set_path_recursive "Env Var BEFORE - depth=%depth%"
253+
%print_debug% :set_path_recursive "Env Var BEFORE - depth=%depth%"
255254
%print_debug% :set_path_recursive "Found Subdirectory - '%%~fi'"
256255
call :set_path_recursive "%%~fi" %depth% %max_depth% %position%
257-
%print_debug% :set_path_recursive "Env Var AFTER- depth=%depth%"
258-
=======
259-
%print_debug% :enhance_path_recursive "Env Var BEFORE - depth=%depth%"
260-
%print_debug% :enhance_path_recursive "Found Subdirectory - '%%~fi'"
261-
call :enhance_path_recursive "%%~fi" %depth% %max_depth% %position%
262-
%print_debug% :enhance_path_recursive "Env Var AFTER- depth=%depth%"
263-
>>>>>>> 126347025f9cade241beff182738b2527da7535e
256+
%print_debug% :set_path_recursive "Env Var AFTER- depth=%depth%"
264257
)
265258
exit /b

0 commit comments

Comments
 (0)