aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authornuex <[email protected]>2014-05-23 09:36:36 -0400
committernuex <[email protected]>2014-05-23 09:36:36 -0400
commitb74765f541d3ad0f3c7a236732d9b001dac16404 (patch)
treee5ec91ac7195ed81e93196e2d7150d94f000864f /priv/templates
parentb7c8c04ec261afc01b99e71db174d945f93632de (diff)
downloadrelx-b74765f541d3ad0f3c7a236732d9b001dac16404.tar.gz
relx-b74765f541d3ad0f3c7a236732d9b001dac16404.tar.bz2
relx-b74765f541d3ad0f3c7a236732d9b001dac16404.zip
remove extra escape; ensures correct erts dir with or without spaces
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/extended_bin.dtl2
1 files changed, 2 insertions, 0 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index c2fd297..22e6199 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -20,6 +20,8 @@ find_erts_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