Skip to content

Commit f1c720f

Browse files
Merge pull request #1643 from rabbitmq/rabbitmq-server-1642
Correctly call rabbitmq-env.bat
2 parents ff0fd23 + 21a7573 commit f1c720f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/rabbitmq-echopid.bat

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ set TDP0=%~dp0
1010

1111
REM Get default settings with user overrides for (RABBITMQ_)<var_name>
1212
REM Non-empty defaults should be set in rabbitmq-env
13-
call "!TDP0!\rabbitmq-env.bat" %~n0
13+
call "%TDP0%\rabbitmq-env.bat" %~n0
1414

15-
if "%1"=="" goto fail
15+
if "%1"=="" goto argfail
1616

1717
:: set timeout vars ::
1818
set TIMEOUT=10
@@ -47,9 +47,11 @@ echo %PID%
4747
endlocal
4848
EXIT /B 0
4949

50+
:: argument is required ::
51+
:argfail
52+
echo Please provide your RabbitMQ node name as the argument to this script.
53+
5054
:: something went wrong ::
5155
:fail
5256
endlocal
5357
EXIT /B 1
54-
55-

0 commit comments

Comments
 (0)