Browse Source

Correct expanding of shell variables in autopatch again

This solution should work better, previous one would sometimes
expand incorrectly and fail.
Loïc Hoguin 6 years ago
parent
commit
7799804277
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/deps.mk

+ 1 - 1
core/deps.mk

@@ -395,7 +395,7 @@ define dep_autopatch_rebar.erl
 	end(),
 	ShellToMk = fun(V0) ->
 		V1 = re:replace(V0, "[$$][(]", "$$\(shell ", [global]),
-		V = re:replace(V1, "(\\\\$$$$)(?![(])(\\\\w*)", "\\\\1(\\\\2)", [global]),
+		V = re:replace(V1, "([$$])(?![(])(\\\\w*)", "\\\\1(\\\\2)", [global]),
 		re:replace(V, "-Werror\\\\b", "", [{return, list}, global])
 	end,
 	PortSpecs = fun() ->