summaryrefslogtreecommitdiff
path: root/src/rebar_reltool.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_reltool.erl')
-rw-r--r--src/rebar_reltool.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index 19c7433..142c1d8 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -306,5 +306,6 @@ execute_overlay([Other | _Rest], _Vars, _BaseDir, _TargetDir) ->
%%
render(Bin, Context) ->
%% Be sure to escape any double-quotes before rendering...
- Str = re:replace(Bin, "\"", "\\\\\"", [global, {return,list}]),
- mustache:render(Str, Context).
+ Str0 = re:replace(Bin, "\\\\", "\\\\\\", [global, {return, list}]),
+ Str1 = re:replace(Str0, "\"", "\\\\\"", [global, {return,list}]),
+ mustache:render(Str1, Context).