File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11@ echo off
22
3-
43call " %~dp0 lib_base.cmd"
54call " %% ~dp0lib_console"
65set lib_path = call " %~dp0 lib_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-
You can’t perform that action at this time.
0 commit comments