diff options
author | Jay Doane <[email protected]> | 2014-09-18 19:35:58 -0700 |
---|---|---|
committer | Jay Doane <[email protected]> | 2014-09-18 19:35:58 -0700 |
commit | 18a192ef884535ceb67dffedc8caf77fe4e39b2b (patch) | |
tree | db373d399b14934467325c2b4cd9da6f4955e88c | |
parent | 1d7f26d786452f53a77fba64fe5081885d26856f (diff) | |
download | relx-18a192ef884535ceb67dffedc8caf77fe4e39b2b.tar.gz relx-18a192ef884535ceb67dffedc8caf77fe4e39b2b.tar.bz2 relx-18a192ef884535ceb67dffedc8caf77fe4e39b2b.zip |
Replace "-s init stop" with halt()
-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 |