Skip to content

Commit 8cedd3f

Browse files
ebelewmichaelklishin
authored andcommitted
Ensure ERL_LIBS starts with a valid path
1 parent 4ee90ff commit 8cedd3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/rabbitmq-env.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,12 @@ set paths=
406406
exit /b
407407

408408
:filter_path
409-
set ERL_LIBS=%ERL_LIBS%;%~dps1%~n1%~x1
409+
REM Ensure ERL_LIBS begins with valid path
410+
IF [%ERL_LIBS%] EQU [] (
411+
set ERL_LIBS=%~dps1%~n1%~x1
412+
) else (
413+
set ERL_LIBS=%ERL_LIBS%;%~dps1%~n1%~x1
414+
)
410415
exit /b
411416

412417
:filter_paths_done

0 commit comments

Comments
 (0)