From 67023c0708d786f62f2f5ff50627699910416f8a Mon Sep 17 00:00:00 2001 From: Jay Doane Date: Tue, 31 Mar 2015 23:08:36 -0700 Subject: Replace "-s init stop" with halt() --- priv/templates/bin.dtl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv/templates/bin.dtl') diff --git a/priv/templates/bin.dtl b/priv/templates/bin.dtl index 3398d63..dd11707 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