Skip to content

Commit

Permalink
Merge pull request #1 from nuex/nuex_start_scripts
Browse files Browse the repository at this point in the history
Nuex start scripts
  • Loading branch information
tsloughter committed May 23, 2014
2 parents b7c8c04 + 72b8e4e commit 2751586
Show file tree
Hide file tree
Showing 2 changed files with 4 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
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 2751586

Please sign in to comment.