Skip to content

Commit 4d15730

Browse files
committed
cleanup
1 parent 25ccfee commit 4d15730

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

vendor/lib/lib_path.cmd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@echo off
22

3-
43
call "%~dp0lib_base.cmd"
54
call "%%~dp0lib_console"
65
set lib_path=call "%~dp0lib_path.cmd"
@@ -32,13 +31,12 @@ exit /b
3231
:::options:
3332
:::
3433
::: append <in> Append to the path env variable rather than pre-pend.
35-
::B
34+
:::
3635
:::
3736
:::output:
3837
:::
3938
::: path <out> Sets the path env variable if required.
4039
:::-------------------------------------------------------------------------------
41-
4240
if "%~1" neq "" (
4341
set "add_path=%~1"
4442
) else (
@@ -53,6 +51,7 @@ exit /b
5351
)
5452

5553
dir "%add_path%" 2>NUL | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL
54+
5655
if "%ERRORLEVEL%" == "0" (
5756
set "add_to_path=%add_path%"
5857
) else (
@@ -135,7 +134,6 @@ exit /b
135134

136135
exit /b
137136

138-
139137
:set_found
140138
if "%ERRORLEVEL%" == "0" (
141139
set found=1
@@ -223,7 +221,7 @@ exit /b
223221

224222
exit /b
225223

226-
: set_depth
224+
:set_depth
227225
set /a "depth=%depth%+1"
228226
exit /b
229227

@@ -239,4 +237,3 @@ exit /b
239237
%print_debug% :enhance_path_recursive "Env Var AFTER- depth=%depth%"
240238
)
241239
exit /b
242-

0 commit comments

Comments
 (0)