diff options
author | Tristan Sloughter <[email protected]> | 2014-09-27 15:30:03 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2014-09-27 15:30:03 -0500 |
commit | 40d6b895f9d1ce6b359502d39663b6fef2b55f1a (patch) | |
tree | 6ebbaa34b2ef8d29b59d1580ac983a5624b1ba3e /priv/templates | |
parent | ce8ee501c9bfd350f97113acfc03c89f0d4af982 (diff) | |
parent | 18a192ef884535ceb67dffedc8caf77fe4e39b2b (diff) | |
download | relx-40d6b895f9d1ce6b359502d39663b6fef2b55f1a.tar.gz relx-40d6b895f9d1ce6b359502d39663b6fef2b55f1a.tar.bz2 relx-40d6b895f9d1ce6b359502d39663b6fef2b55f1a.zip |
Merge pull request #224 from jaydoane/replace-init-stop-with-halt-in-bin-dot-dtl
Replace "-s init stop" with halt()
Diffstat (limited to 'priv/templates')
-rwxr-xr-x | priv/templates/bin.dtl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/bin.dtl b/priv/templates/bin.dtl index 60bbe68..bb83434 100755 --- a/priv/templates/bin.dtl +++ b/priv/templates/bin.dtl @@ -17,8 +17,8 @@ find_erts_dir() { ROOTDIR="$RELEASE_ROOT_DIR" else local erl="$(which erl)" - code="io:format(\"~s\", [code:root_dir()])." - local erl_root="$("$erl" -noshell -eval "$code" -s init stop)" + code="io:format(\"~s\", [code:root_dir()]), halt()." + local erl_root="$("$erl" -noshell -eval "$code")" ERTS_DIR="$erl_root/erts-$ERTS_VSN" ROOTDIR="$erl_root" fi |