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 1
1
@ echo off
2
2
3
-
4
3
call " %~dp0 lib_base.cmd"
5
4
call " %% ~dp0lib_console"
6
5
set lib_path = call " %~dp0 lib_path.cmd"
@@ -32,13 +31,12 @@ exit /b
32
31
:: :options:
33
32
:: :
34
33
:: : append <in> Append to the path env variable rather than pre-pend.
35
- :: B
34
+ :: :
36
35
:: :
37
36
:: :output:
38
37
:: :
39
38
:: : path <out> Sets the path env variable if required.
40
39
:: :-------------------------------------------------------------------------------
41
-
42
40
if " %~1 " neq " " (
43
41
set " add_path = %~1 "
44
42
) else (
@@ -53,6 +51,7 @@ exit /b
53
51
)
54
52
55
53
dir " %add_path% " 2 > NUL | findstr -i " \.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" > NUL
54
+
56
55
if " %ERRORLEVEL% " == " 0" (
57
56
set " add_to_path = %add_path% "
58
57
) else (
@@ -135,7 +134,6 @@ exit /b
135
134
136
135
exit /b
137
136
138
-
139
137
:set_found
140
138
if " %ERRORLEVEL% " == " 0" (
141
139
set found = 1
@@ -223,7 +221,7 @@ exit /b
223
221
224
222
exit /b
225
223
226
- : set_depth
224
+ :set_depth
227
225
set /a " depth = %depth% + 1"
228
226
exit /b
229
227
@@ -239,4 +237,3 @@ exit /b
239
237
%print_debug% :enhance_path_recursive " Env Var AFTER- depth=%depth% "
240
238
)
241
239
exit /b
242
-
You can’t perform that action at this time.
0 commit comments