Handle rebar3 version strings such as "3.14.1+build.4750.refd11ceb4f"
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
IsRebar3 = case application:get_key(rebar, vsn) of
|
IsRebar3 = case application:get_key(rebar, vsn) of
|
||||||
{ok, VSN} ->
|
{ok, VSN} ->
|
||||||
[VSN1 | _] = string:tokens(VSN, "-"),
|
[VSN1 | _] = string:tokens(VSN, "-+"),
|
||||||
[Maj, Min, Patch] = string:tokens(VSN1, "."),
|
[Maj, Min, Patch] = string:tokens(VSN1, "."),
|
||||||
(list_to_integer(Maj) >= 3);
|
(list_to_integer(Maj) >= 3);
|
||||||
undefined ->
|
undefined ->
|
||||||
|
|||||||
Reference in New Issue
Block a user