From b74765f541d3ad0f3c7a236732d9b001dac16404 Mon Sep 17 00:00:00 2001 From: nuex Date: Fri, 23 May 2014 09:36:36 -0400 Subject: remove extra escape; ensures correct erts dir with or without spaces --- priv/templates/extended_bin.dtl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl index c2fd297..22e6199 100644 --- a/priv/templates/extended_bin.dtl +++ b/priv/templates/extended_bin.dtl @@ -20,6 +20,8 @@ find_erts_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 -- cgit v1.2.3