diff options
| author | Michael Klishin <michael@novemberain.com> | 2017-05-02 13:25:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-02 13:25:25 +0200 |
| commit | 311473f36e9a07909c52693b9c66d7f73bd3a1c6 (patch) | |
| tree | d847237e2bc8e88687c954448ba0ea935f69e35d | |
| parent | 775a41579c6ed5dd046aaed0eb5eacf8a48460f7 (diff) | |
| parent | 36ecc87deb53f46b329684e733936b345b822134 (diff) | |
| download | rabbitmq-server-git-311473f36e9a07909c52693b9c66d7f73bd3a1c6.tar.gz | |
Merge pull request #1204 from ebelew/erl_libs_windows_fix
Ensure ERL_LIBS starts with a valid path
| -rw-r--r-- | scripts/rabbitmq-env.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/rabbitmq-env.bat b/scripts/rabbitmq-env.bat index 56b2f69b2d..9d7a724318 100644 --- a/scripts/rabbitmq-env.bat +++ b/scripts/rabbitmq-env.bat @@ -417,7 +417,12 @@ set paths= exit /b
:filter_path
-set ERL_LIBS=%ERL_LIBS%;%~dps1%~n1%~x1
+REM Ensure ERL_LIBS begins with valid path
+IF [%ERL_LIBS%] EQU [] (
+ set ERL_LIBS=%~dps1%~n1%~x1
+) else (
+ set ERL_LIBS=%ERL_LIBS%;%~dps1%~n1%~x1
+)
exit /b
:filter_paths_done
|
