Fix script so it can compile git-versioned

rebar3 variables as that is the way these versions
can look when updated using
`rebar3 local upgrade`.
This commit is contained in:
Ómar Kjartan Yasin 2016-03-10 10:46:39 -08:00
parent 8a325c0291
commit 0c1636e75a

View file

@ -1,8 +1,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, "-"), [MajorVersion|_] = string:tokens(Vsn, "."),
[Maj, Min, Patch] = string:tokens(VSN1, "."), (list_to_integer(MajorVersion) >= 3);
(list_to_integer(Maj) >= 3);
undefined -> undefined ->
false false
end, end,