aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpriv/templates/bin.dtl4
-rwxr-xr-x[-rw-r--r--]priv/templates/extended_bin.dtl4
2 files changed, 4 insertions, 4 deletions
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
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index 9a3ab61..b42df00 100644..100755
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -19,8 +19,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