Skip to content

Commit fc1d2fa

Browse files
Merge pull request #1269 from rabbitmq/fix-windows-empty-string
Using square brackets could cause an error
2 parents 2014558 + 7151567 commit fc1d2fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/rabbitmq-env.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ if "!RABBITMQ_SCHEMA_DIR!" == "" (
202202
)
203203
)
204204

205-
206205
REM [ "x" = "x$RABBITMQ_LOG_BASE" ] && RABBITMQ_LOG_BASE=${LOG_BASE}
207206
if "!RABBITMQ_LOG_BASE!"=="" (
208207
if "!LOG_BASE!"=="" (
@@ -418,7 +417,7 @@ exit /b
418417

419418
:filter_path
420419
REM Ensure ERL_LIBS begins with valid path
421-
IF [%ERL_LIBS%] EQU [] (
420+
IF "%ERL_LIBS%"=="" (
422421
set ERL_LIBS=%~dps1%~n1%~x1
423422
) else (
424423
set ERL_LIBS=%ERL_LIBS%;%~dps1%~n1%~x1

0 commit comments

Comments
 (0)