diff options
author | bitnitdit <[email protected]> | 2017-09-11 20:57:17 +0800 |
---|---|---|
committer | bitnitdit <[email protected]> | 2017-09-11 20:57:17 +0800 |
commit | 25196f4b994df5364eb060bff8418a0154622ed4 (patch) | |
tree | 8fde99038143e00e3d84e627f01a63803346864d /priv/templates/extended_bin | |
parent | 430b1d7f5ab75a849d70c82a98614f701a4912c6 (diff) | |
download | relx-25196f4b994df5364eb060bff8418a0154622ed4.tar.gz relx-25196f4b994df5364eb060bff8418a0154622ed4.tar.bz2 relx-25196f4b994df5364eb060bff8418a0154622ed4.zip |
Prevent .erlang from prepending string to the erl root dir
Any output string from .erlang to stdout will be prepend to
code:root_dir(), so it will cause the retrieved dir incorrect.
The fix is to start erl with the no_dot_erlang boot file.
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-x | priv/templates/extended_bin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 71dd858..a48a917 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -120,7 +120,7 @@ find_erts_dir() { else __erl="$(which erl)" code="io:format(\"~s\", [code:root_dir()]), halt()." - __erl_root="$("$__erl" -noshell -eval "$code")" + __erl_root="$("$__erl" -boot no_dot_erlang -noshell -eval "$code")" ERTS_DIR="$__erl_root/erts-$ERTS_VSN" ROOTDIR="$__erl_root" fi |