diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-10-30 18:31:54 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-10-30 18:31:54 +0100 |
| commit | 571d4cb3468372cd132d577d0e2d1d8ac7c95324 (patch) | |
| tree | 7a0646f683745b33ee8ff0e0bfc1e4c748b9c372 | |
| parent | 226e52a87c5e376adce9d857dad1ccc24d934971 (diff) | |
| download | rabbitmq-server-git-571d4cb3468372cd132d577d0e2d1d8ac7c95324.tar.gz | |
rabbitmq-env.bat: Use lazy variable expansion
... when querying `plugins_dir` and `enabled_plugins_file`.
| -rw-r--r-- | scripts/rabbitmq-env.bat | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/rabbitmq-env.bat b/scripts/rabbitmq-env.bat index 76a7483799..00eca4bdc8 100644 --- a/scripts/rabbitmq-env.bat +++ b/scripts/rabbitmq-env.bat @@ -274,16 +274,16 @@ if defined RABBITMQ_DEV_ENV ( REM We may need to query the running node for the plugins directory
REM and the "enabled plugins" file.
if not "%RABBITMQ_PLUGINS_DIR_source%" == "environment" (
- for /f "delims=" %%F in ('%SCRIPT_DIR%\rabbitmqctl eval "{ok, P} = application:get_env(rabbit, plugins_dir), io:format(\"~s~n^\", [P])."') do @set plugins_dir=%%F
+ for /f "delims=" %%F in ('!SCRIPT_DIR!\rabbitmqctl eval "{ok, P} = application:get_env(rabbit, plugins_dir), io:format(\"~s~n^\", [P])."') do @set plugins_dir=%%F
if exist "!plugins_dir!" (
- set RABBITMQ_PLUGINS_DIR=%plugins_dir%
+ set RABBITMQ_PLUGINS_DIR=!plugins_dir!
)
REM set plugins_dir=
)
if not "%RABBITMQ_ENABLED_PLUGINS_FILE_source%" == "environment" (
- for /f "delims=" %%F in ('%SCRIPT_DIR%\rabbitmqctl eval "{ok, P} = application:get_env(rabbit, enabled_plugins_file), io:format(\"~s~n\", [P])."') do @set enabled_plugins_file=%%F
+ for /f "delims=" %%F in ('!SCRIPT_DIR!\rabbitmqctl eval "{ok, P} = application:get_env(rabbit, enabled_plugins_file), io:format(\"~s~n\", [P])."') do @set enabled_plugins_file=%%F
if exist "!enabled_plugins_file!" (
- set RABBITMQ_ENABLED_PLUGINS_FILE=%enabled_plugins_file%
+ set RABBITMQ_ENABLED_PLUGINS_FILE=!enabled_plugins_file!
)
REM set enabled_plugins_file=
)
|
