Skip to content

Commit

Permalink
Merge pull request #190 from tsloughter/start_scripts
Browse files Browse the repository at this point in the history
remove quoting that breaks start scripts
  • Loading branch information
jwilberding committed May 24, 2014
2 parents 69daf47 + 2751586 commit 23d3d77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions priv/templates/bin.dtl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -59,4 +60,4 @@ set -- "$ERL_OPTS"
set -- "$@" -boot "$REL_DIR/$REL_NAME" "$ARGS"

# Boot the release
"$BINDIR/erlexec" "$@"
$BINDIR/erlexec $@
3 changes: 2 additions & 1 deletion priv/templates/extended_bin.dtl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23d3d77

Please sign in to comment.