aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-09-27 15:30:03 -0500
committerTristan Sloughter <[email protected]>2014-09-27 15:30:03 -0500
commit40d6b895f9d1ce6b359502d39663b6fef2b55f1a (patch)
tree6ebbaa34b2ef8d29b59d1580ac983a5624b1ba3e /priv/templates
parentce8ee501c9bfd350f97113acfc03c89f0d4af982 (diff)
parent18a192ef884535ceb67dffedc8caf77fe4e39b2b (diff)
downloadrelx-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-xpriv/templates/bin.dtl4
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