aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin.dtl
diff options
context:
space:
mode:
Diffstat (limited to 'priv/templates/bin.dtl')
-rwxr-xr-xpriv/templates/bin.dtl5
1 files changed, 3 insertions, 2 deletions
diff --git a/priv/templates/bin.dtl b/priv/templates/bin.dtl
index 4434552..60bbe68 100755
--- a/priv/templates/bin.dtl
+++ b/priv/templates/bin.dtl
@@ -17,7 +17,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
@@ -59,4 +60,4 @@ set -- "$ERL_OPTS"
set -- "$@" -boot "$REL_DIR/$REL_NAME" "$ARGS"
# Boot the release
-"$BINDIR/erlexec" "$@"
+$BINDIR/erlexec $@