Skip to content

Commit

Permalink
add erts_dir fix to bin directory, remove extranneous erl_root declar…
Browse files Browse the repository at this point in the history
…ation in extended_bin
  • Loading branch information
nuex committed May 23, 2014
1 parent b74765f commit 72b8e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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
1 change: 0 additions & 1 deletion priv/templates/extended_bin.dtl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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"
Expand Down

0 comments on commit 72b8e4e

Please sign in to comment.