aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin.dtl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-05-23 17:01:23 -0500
committerTristan Sloughter <[email protected]>2014-05-23 17:01:23 -0500
commit2751586ac8748d6443b9e544d6932952fef08cab (patch)
treefc47ee4fa45f5592eae83e8b11508cc9f2b46f01 /priv/templates/extended_bin.dtl
parentb7c8c04ec261afc01b99e71db174d945f93632de (diff)
parent72b8e4ea49b5cf8b45dd3f7c0ec9c7ec6622a6c0 (diff)
downloadrelx-2751586ac8748d6443b9e544d6932952fef08cab.tar.gz
relx-2751586ac8748d6443b9e544d6932952fef08cab.tar.bz2
relx-2751586ac8748d6443b9e544d6932952fef08cab.zip
Merge pull request #1 from nuex/nuex_start_scripts
Nuex start scripts
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-rw-r--r--priv/templates/extended_bin.dtl3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index c2fd297..bb3e8d7 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -19,7 +19,8 @@ find_erts_dir() {
ROOTDIR="$RELEASE_ROOT_DIR"
else
local erl="$(which erl)"
- local erl_root=$("$erl" -noshell -eval "io:format(\"~s\", [code:root_dir()])." -s init stop)
+ code="io:format(\"~s\", [code:root_dir()])."
+ local erl_root="$("$erl" -noshell -eval "$code" -s init stop)"
ERTS_DIR="$erl_root/erts-$ERTS_VSN"
ROOTDIR="$erl_root"
fi