From acb38431b1076e3443deaf32952748a3a5489e8a Mon Sep 17 00:00:00 2001 From: Jared Morrow Date: Tue, 23 Jun 2015 10:26:42 -0600 Subject: Adjust local variable naming per review comments --- priv/templates/extended_bin | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'priv/templates/extended_bin') diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 59f46b3..64409ae 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -13,16 +13,16 @@ ERL_OPTS="{{ erl_opts }}" RUNNER_LOG_DIR="${RUNNER_LOG_DIR:-$RELEASE_ROOT_DIR/log}" find_erts_dir() { - l_erts_dir="$RELEASE_ROOT_DIR/erts-$ERTS_VSN" - if [ -d "$l_erts_dir" ]; then - ERTS_DIR="$l_erts_dir"; + __erts_dir="$RELEASE_ROOT_DIR/erts-$ERTS_VSN" + if [ -d "$__erts_dir" ]; then + ERTS_DIR="$__erts_dir"; ROOTDIR="$RELEASE_ROOT_DIR" else - l_erl="$(which erl)" + __erl="$(which erl)" code="io:format(\"~s\", [code:root_dir()]), halt()." - l_erl_root="$("$l_erl" -noshell -eval "$code")" - ERTS_DIR="$l_erl_root/erts-$ERTS_VSN" - ROOTDIR="$l_erl_root" + __erl_root="$("$__erl" -noshell -eval "$code")" + ERTS_DIR="$__erl_root/erts-$ERTS_VSN" + ROOTDIR="$__erl_root" fi } -- cgit v1.2.3