diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2020-01-04 02:49:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-04 02:49:06 +0300 |
| commit | 27212242463cfc3327aafd3010421f769afa7be8 (patch) | |
| tree | f2ed8cd80ca2bfe70a033b63d8caa6bb3a11d356 /scripts | |
| parent | 6b273e46723ce05dbac5016e7d4c712c27671abb (diff) | |
| parent | 87775fe4aa994ad5f997335ac279726b0297170b (diff) | |
| download | rabbitmq-server-git-27212242463cfc3327aafd3010421f769afa7be8.tar.gz | |
Merge pull request #2201 from rabbitmq/lrb-fix-powershell
Ensure powershell.exe runs without profile
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rabbitmq-env.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rabbitmq-env.bat b/scripts/rabbitmq-env.bat index 92853a2362..a8717070f2 100644 --- a/scripts/rabbitmq-env.bat +++ b/scripts/rabbitmq-env.bat @@ -23,7 +23,7 @@ if defined ERL_LIBS ( REM If ERLANG_HOME is not defined, check if "erl.exe" is available in
REM the path and use that.
if not defined ERLANG_HOME (
- for /f "delims=" %%F in ('PowerShell.exe -Command "(Get-Command erl.exe).Definition"') do @set ERL_PATH=%%F
+ for /f "delims=" %%F in ('powershell.exe -NoLogo -NoProfile -NonInteractive -Command "(Get-Command erl.exe).Definition"') do @set ERL_PATH=%%F
if exist "!ERL_PATH!" (
for /f "delims=" %%F in ("!ERL_PATH!") do set ERL_DIRNAME=%%~dpF
for /f "delims=" %%F in ("!ERL_DIRNAME!\..") do @set ERLANG_HOME=%%~dpF%%~nF%%~xF
|
