From 18a192ef884535ceb67dffedc8caf77fe4e39b2b Mon Sep 17 00:00:00 2001 From: Jay Doane Date: Thu, 18 Sep 2014 19:35:58 -0700 Subject: Replace "-s init stop" with halt() --- priv/templates/bin.dtl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv') 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 -- cgit v1.2.3